Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
regexps are silly
> typeof /x/
> ['ax','by','cz'].filter(/x/)
TypeError: /x/ is not a function
at Array.filter (native)
at [object Context]:1:18
at Interface.<anonymous> (repl.js:179:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._normalWrite (readline.js:227:10)
at ReadStream.<anonymous> (readline.js:66:12)
at ReadStream.emit (events.js:64:17)
at ReadStream._onReadable (net.js:672:14)
at IOWatcher.onReadable [as callback] (net.js:177:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment