UNPKG
ponicode
Version:
latest (0.71.3)
0.71.3
0.71.2
0.70.11
0.70.9
0.70.8
0.69.1
0.67.1
0.67.0
0.66.4
0.63.2
0.61.3
0.60.0
0.59.2
0.58.1
0.58.0
0.57.1
0.56.16
0.56.15
0.56.14
0.55.1
0.54.1
0.53.2
0.52.2
0.52.1
0.51.0
0.50.5
0.50.2
0.50.1
0.49.1
0.48.2
0.48.1
0.48.0
0.0.1
0.0.1-17
0.0.1-16
0.0.1-15
0.0.1-14
0.0.1-13
0.0.1-12
0.0.1-11
0.0.1-10
0.0.1-9
0.0.1-8
0.0.1-7
0.0.1-6
0.0.1-5
0.0.1-4
0.0.1-3
0.0.1-2
0.0.1-1
Ponicode is a quick and easy AI-powered solution for Javascript unit testing.
ponicode.com
ponicode
/
language-service
/
node_modules
/
array-differ
/
index.js
9 lines
(6 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
;
const
arrayDiffer
= (
array, ...values
) => {
const
rest =
new
Set
([].
concat
(...values));
return
array.
filter
(
element
=>
!rest.
has
(element)); };
module
.
exports
= arrayDiffer;