UNPKG
photocopy
Version:
latest (3.2.5)
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.1.0
3.0.0
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
0.0.0
Iterate anything and return a modified copy.
github.com/nrn/photocopy
nrn/photocopy
photocopy
/
done.js
13 lines
(9 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
reduce =
require
(
'universal-reduce'
)
module
.
exports
= done
function
done
(
acc, value, key
) {
return
( (
typeof
value ===
'undefined'
&&
typeof
key ===
'undefined'
) || (reduce.
isReduced
(acc)) ) }