Package Exports
- @brazilian-utils/helper-is-last-char
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@brazilian-utils/helper-is-last-char) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@brazilian-utils/helper-is-last-char
Check if the index is the same as last index of the string.
Installation
# Yarn
yarn add @brazilian-utils/helper-is-last-char
# npm
npm install @brazilian-utils/helper-is-last-char --save
# UMD
<script type='text/javascript' src='https://unpkg.com/@brazilian-utils/helper-is-last-char/dist/index.umd.js'></script>Usage
import isLastChar from '@brazilian-utils/helper-is-last-char';
isLastChar(2, '123'); // true
isLastChar(1, '123'); // false
isLastChar(3, '123'); // false