8 lines
134 B
JavaScript
8 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;
|
||
|
};
|