.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / indexes-of / README.md
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/indexes-of/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/indexes-of/README.md
new file mode 100644 (file)
index 0000000..90a3741
--- /dev/null
@@ -0,0 +1,24 @@
+# indexes-of
+
+like Array/String#indexOf but return all the indexes in an array.
+
+``` js
+var indexesOf = require('indexes-of')
+
+var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)
+
+console.log(twosIndexes)
+
+// [1, 7]
+
+```
+
+# Haiku
+
+* A 5 line module.
+* But the tests are 40 lines.
+* npm publish.
+
+## License
+
+MIT