Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
tonic + npm: to-object-by
node v6.17.1
version:
1.1.0
endpoint
share
tweet
var toObjectBy = require("to-object-by") toObjectBy( [ { foo: 'foo1', bar: 'bar1' }, { foo: 'foo2', bar: 'bar1' }, ], e => ({ [e.foo]: e }), )
Created from: https://tonicdev.com/npm/to-object-by
Loading…
no comments
sign in
to comment