ruffle1986 / last-char

Get the last character in a provided string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

last-char Donate now

Get the last character in a provided string.

Installation

$ npm i last-char

Example

// Dependencies
var LastChar = require("last-char");

console.log(LastChar("foo"));
// => "o"

console.log(LastChar("bar"));
// => "r"

Press Highlights

None yet. If you wrote or found an article about this project, add it in this section. 📝

Documentation

LastChar(input)

Returns the last character of the provided string.

Params

  • String input: The input string.

Return

  • String The last character of the provided string.

How to contribute

Have an idea? Found a bug? See how to contribute.

License

KINDLY © Ionică Bizău–The LICENSE file contains a copy of the license.

About

Get the last character in a provided string.

License:Other


Languages

Language:JavaScript 100.0%