Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101946160
readme.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 15, 11:19
Size
641 B
Mime Type
text/x-Algol68
Expires
Mon, Feb 17, 11:19 (2 d)
Engine
blob
Format
Raw Data
Handle
24222788
Attached To
R2664 SHRINE MedCo Fork
readme.md
View Options
#
array
-
differ
[![
Build
Status
](
https
:
//travis-ci.org/sindresorhus/array-differ.svg?branch=master)](https://travis-ci.org/sindresorhus/array-differ)
>
Create
an
array
with
values
that
are
present
in
the
first
input
array
but
not
additional
ones
##
Install
```
sh
$
npm
install
--
save
array
-
differ
```
##
Usage
```
js
var
arrayDiffer
=
require
(
'
array
-
differ
'
);
arrayDiffer
([
2
,
3
,
4
],
[
3
,
50
]);
//=> [2, 4]
```
##
API
###
arrayDiffer
(
input
,
values
,
[
values
,
...])
Returns
the
new
array
.
####
input
Type
:
`array`
####
values
Type
:
`array`
Arrays
of
values
to
exclude
.
##
License
MIT
©
[
Sindre
Sorhus
](
http
:
//sindresorhus.com)
Event Timeline
Log In to Comment