UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

7 lines (6 loc) 157 B
'use strict' const pick = module.exports = (object, keys) => { const result = {} for (let key of keys) result[key] = object[key] return result }