ends-with-any
Returns true if the given string or array ends with any of the given substrings.
Install
Install with npm
$ npm i ends-with-any --save
Usage
var endsWithAny = ;
true
All of the following return true
:
;;;;;;;;;//=> true
false
All of the following return false
:
;;;;;//=> false
Related projects
- ends-with: Returns
true
if the givenstring
orarray
ends withsuffix
using strict equality for… more - starts-with: Returns
true
if the given string or array starts with prefix using strict equality for… more - starts-with-any: Returns true if the given string or array begins with any of the given substrings.
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 09, 2015.