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