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