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