7 lines
185 B
JavaScript
7 lines
185 B
JavaScript
![]() |
var makeString = require('./helper/makeString');
|
||
|
|
||
|
module.exports = function include(str, needle) {
|
||
|
if (needle === '') return true;
|
||
|
return makeString(str).indexOf(needle) !== -1;
|
||
|
};
|