binary-mask
v0.0.2
Published
Creates a binary mask based on the differences of two arrays
Downloads
12
Maintainers
Readme
binary-mask
Creates a binary mask based on the differences of two arrays
Installation
npm install binary-mask
Usage
var mask = require('binary-mask');
var first = [1, 2, 3];
var second = [1, 5, '3'];
var final = mask(first, second); // [0, 1, 1]
Using strings
var mask = require('binary-mask');
var first = 'Hello';
var second = 'hello';
var final = mask(first, second); // [1, 0, 0, 0, 0]