@brazilian-utils/helper-is-last-char

Check if the index is the same as last index of the string

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@brazilian-utils/helper-is-last-char
Minified + gzip package size for @brazilian-utils/helper-is-last-char in KB

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.