include.js 185 Bytes Raw Blame History Permalink 1 2 3 4 5 6 var makeString = require('./helper/makeString'); module.exports = function include(str, needle) { if (needle === '') return true; return makeString(str).indexOf(needle) !== -1; };