Edit this page

up.util up.util.pluckKey(object, key)
JavaScript function

Deletes the property with the given key from the given object and returns its value.


Parameters

object
required

The object from which to pluck a property.

key
required

The name of the property to pluck.

string

Return value

The value of the property before it was deleted.

If the object didn't return the property, returns undefined.

any