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.

Type: Object
key
required

The name of the property to pluck.

Type: string

Return value

The value of the property before it was deleted.

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

Type: any