projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Version 1
[yaffs-website]
/
node_modules
/
underscore.string
/
include.js
diff --git a/node_modules/underscore.string/include.js
b/node_modules/underscore.string/include.js
new file mode 100644
(file)
index 0000000..
a2e910f
--- /dev/null
+++ b/
node_modules/underscore.string/include.js
@@ -0,0
+1,6
@@
+var makeString = require('./helper/makeString');
+
+module.exports = function include(str, needle) {
+ if (needle === '') return true;
+ return makeString(str).indexOf(needle) !== -1;
+};