UNPKG

imma

Version:

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

8 lines (7 loc) 238 B
'use strict' const getIn = module.exports = (iterable, keys) => { const first = keys[0] if (!iterable || !iterable[first]) return if (keys.length === 1) return iterable[first] return getIn(iterable[first], keys.slice(1)) }