ui
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function forget(key) {
|
||||
if (Array.isArray(this.items)) {
|
||||
this.items.splice(key, 1);
|
||||
} else {
|
||||
delete this.items[key];
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
Reference in New Issue
Block a user