Delete_key
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Delete_key

  • Dark
    Light
  • PDF

Article Summary

Returns an object that contains all other properties of the given object parameter except the given key.

Function signature

DELETE_KEY(object: Object, propertyname: String) => Object
ParameterDescription
ObjectObject whose property will be get
Property nameName of the property to not take from object

Examples

animal = {"name":"dog","weight":123,"active":false,"children":0}
FormulaReturn value
DELETE_KEY({a: "A", b: "B", c: "C"}, "a"){"b":"B","c":"C"}
DELETE_KEY(animal, "weight"){"name":"dog","active":false,"children":0}

Was this article helpful?

What's Next