Comparing version 2.0.0 to 2.1.0
@@ -22,2 +22,4 @@ 'use strict' | ||
var NAME_PATTERN = /([\\.A-Za-z]+)/g | ||
module.exports = { | ||
@@ -86,4 +88,11 @@ getPrototypeOf: Object.getPrototypeOf, | ||
result = [] | ||
result = result.map( ( p ) => { | ||
var index = p.indexOf('=') | ||
return (index === -1) ? p : p.substring( 0, index ) | ||
} ) | ||
result = result.filter( ( p ) => { | ||
return p.length > 0 && p.match( NAME_PATTERN ) | ||
} ) | ||
return result | ||
} | ||
} |
{ | ||
"name": "isa.js", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Very minimal collection is isA functions. isObject, isArray, isDate...", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/imrefazekas/isa", |
10497
6
229