Comparing version 1.0.0 to 1.0.1
@@ -8,10 +8,5 @@ var t = require('tiny-typeof') | ||
return function (type) { | ||
// Including word boundaries will prevent | ||
// Array from matching ArrayBuffer, etc. | ||
var typex = RegExp('\\b' + type + '\\b', 'i') | ||
var i = xargs.length | ||
while (i--) { | ||
v = xargs[i] | ||
if (typex.test(t(v))) { | ||
if (t(v = xargs[i]) === type) { | ||
// Remove the found item from the args | ||
@@ -18,0 +13,0 @@ // to speed up subsequent `arg-find` calls. |
{ | ||
"name": "arg-find", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "write functions that accept arguments in any order", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3280
51