/
home
/
infinitibizsol
/
.trash
/
node_modules.3
/
underscore.string
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/node_modules.3/underscore.string/endsWith.js
var makeString = require('./helper/makeString'); var toPositive = require('./helper/toPositive'); module.exports = function endsWith(str, ends, position) { str = makeString(str); ends = '' + ends; if (typeof position == 'undefined') { position = str.length - ends.length; } else { position = Math.min(toPositive(position), str.length) - ends.length; } return position >= 0 && str.indexOf(ends, position) === position; };
Copyright ©2k19 -
Hexid
|
Tex7ure