UNPKG
oops
Version:
latest (0.0.1)
0.0.1
Functional <3 to rescue from OOPs
github.com/Gozala/oops
Gozala/oops
oops
/
values.js
10 lines
(6 loc)
•
184 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
module
.
exports
= values
function
values
(
target
) {
return
target ?
Object
.
keys
(target).
map
(value, target) : [] }
var
value =
function
value
(
key
) {
return
this
[key] }