Package Exports
- end-with
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (end-with) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
end-with 
Determines whether a string ends with the characters of another string.
ES2015 String#endsWith() ponyfill.
Ponyfill: A polyfill that doesn't overwrite the native method.
Install
$ npm install --save end-with Usage
For more use-cases see the tests
var endWith = require('end-with');
endWith('abcde', 'e'); // => true
endWith('abcde', 'de'); // => true
endWith('abcde', 'bc'); // => false
endWith('abcde', ''); // => true
endWith('abcde'); // => false
endWith('abcde', null); // => false
Related
- start-with - Determines whether a string begins with the characters of another string.
- pad-start - ES spec-compliant String.prototype.padStart shim.
- pad-end - ES spec-compliant String.prototype.padEnd shim.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.