UNPKG

@dotconnor/grommet

Version:

focus on the essential experience

7 lines 283 B
export var applyKey = function applyKey(option, key) { if (option === undefined) return undefined; if (typeof key === 'object') return applyKey(option, key.key); if (typeof key === 'function') return key(option); if (key !== undefined) return option[key]; return option; };