mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 00:11:07 +03:30
18 lines
358 B
JavaScript
Vendored
18 lines
358 B
JavaScript
Vendored
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;
|
|
};
|