split-last

0.0.3 • Public • Published

split-last

Split the last separator of string.

Install

$ npm install split-last

Example

require("split-last");

console.log("192.168.0.1".splitLast("."));
//=> [ '192.168.0', '1' ]

console.log("http://www.abc.com/example/demo/web.html".splitLast("/"));
//=> [ 'http://www.abc.com/example/demo', 'web.html' ]

License

This code is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i split-last

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tooto1985