-
Notifications
You must be signed in to change notification settings - Fork 2
Remove Parameters
Adam McArthur edited this page Jun 24, 2014
·
1 revision
You can remove specific parameters from an Instance. This process is simple:
var Order = new Instance();
// Remove a single parameter (String)
Order.remove("shoes");
// Remove multiple parameters (Array)
Order.remove([
"shoes",
"jacket"
]);
Attempting to retrieve removed parameters will now return undefined
...
shoes = Order.get("shoes");
console.log(shoes);
// => undefined
Did you find this page helpful? Shoot me an email...