8 lines
131 B
JavaScript
8 lines
131 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function(a, b) {
|
||
|
a = String(a);
|
||
|
b = String(b);
|
||
|
return a.slice(a.length - b.length) === b;
|
||
|
};
|