epiphany/node_modules/ends-with/benchmark/implementations/slice.js

8 lines
131 B
JavaScript
Raw Normal View History

2023-12-09 22:48:07 -08:00
'use strict';
module.exports = function(a, b) {
a = String(a);
b = String(b);
return a.slice(a.length - b.length) === b;
};