UNPKG

imma

Version:

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

9 lines (7 loc) 262 B
'use strict' const arrayRemove = require('../array/remove') const objectRemove = require('../object/remove') const remove = module.exports = (iterable, key) => Array.isArray(iterable) ? arrayRemove(iterable, key) : objectRemove(iterable, key)