Files
zyt/TongjiUniApp/node_modules/licia/endWith.js
T
2026-10-22 11:12:16 +08:00

7 lines
163 B
JavaScript
Executable File

exports = function(str, suffix) {
var idx = str.length - suffix.length;
return idx >= 0 && str.indexOf(suffix, idx) === idx;
};
module.exports = exports;