complete redesign: use nodejs on server instead of php - documentation to be updated
This commit is contained in:
17
nodejs/node_modules/stylus/lib/functions/remove.js
generated
vendored
Normal file
17
nodejs/node_modules/stylus/lib/functions/remove.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
};
|
Reference in New Issue
Block a user