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

0.1.7 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

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

    Weekly Downloads

    675

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    3.64 kB

    Total Files

    9

    Last publish

    Collaborators

    • andreoav
    • hyanmandian
    • lucassveloso