UNPKG
node-surepetcare
Version:
latest (0.2.88)
0.2.88
0.2.86
0.2.85
0.2.84
0.2.83
0.2.82
0.2.81
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.2
0.2.1
0.2.0
Interact with sure petcare server
github.com/dinifarb/surepetcare
dinifarb/surepetcare
node-surepetcare
/
index.js
11 lines
(8 loc)
•
227 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
Array
.
prototype
.
addOnlyNew
=
function
(
arr
) { arr.
forEach
(
e
=>
{
if
(!
this
.
find
(
lo
=>
lo.
id
=== e.
id
))
this
.
push
(e); });
return
this
; };
import
PetCare
from
'./lib/PetCare.js'
;
export
default
PetCare