map-filter-reduce
Advanced tools
Comparing version 3.0.8 to 3.1.0
{ | ||
"name": "map-filter-reduce", | ||
"description": "", | ||
"version": "3.0.8", | ||
"version": "3.1.0", | ||
"homepage": "https://github.com/dominictarr/map-filter-reduce", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -41,2 +41,7 @@ 'use strict' | ||
} | ||
exports.in = function (a, b) { | ||
return ~b.indexOf(a) | ||
} | ||
exports.type = function (a) { | ||
@@ -43,0 +48,0 @@ return typeof a |
@@ -19,2 +19,3 @@ var tape = require('tape') | ||
{source: 'b', dest: 'a', rel: ['contact', false, null]}, | ||
{source: 'x', dest: 'a', rel: ['age', false, null]}, | ||
true, | ||
@@ -34,3 +35,5 @@ false | ||
{$is: 'boolean'}, | ||
{$is: 'string'} | ||
{$is: 'string'}, | ||
{source: {$in: ['x', 'a']}}, | ||
{rel: [{$in: ['name', 'age']}]} | ||
] | ||
@@ -54,3 +57,12 @@ | ||
[true, false], | ||
['string', 'strength'] | ||
['string', 'strength'], | ||
[ | ||
{source: 'a', dest: 'b', rel: ['name', '@bob']}, | ||
{source: 'x', dest: 'a', rel: ['age', false, null]}, | ||
], | ||
[ | ||
{source: 'a', dest: 'b', rel: ['name', '@bob']}, | ||
{source: 'b', dest: 'a', rel: ['name', '@alice']}, | ||
{source: 'x', dest: 'a', rel: ['age', false, null]}, | ||
] | ||
] | ||
@@ -57,0 +69,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34637
1075