Sha256: edb9803f76e89b6b87ad6b02de6664ec427c2f49c29e3dfd956b49b7f23c6f48
Contents?: true
Size: 358 Bytes
Versions: 39
Compression:
Stored size: 358 Bytes
Contents
var utils = require('../utils'); /** * Remove the given `key` from the `object`. * * @param {Object} object * @param {String} key * @return {Object} * @api public */ module.exports = function remove(object, key){ utils.assertType(object, 'object', 'object'); utils.assertString(key, 'key'); delete object.vals[key.string]; return object; };
Version data entries
39 entries across 20 versions & 2 rubygems