Skip to content

Function_evisit_core_js_utils_remove

Wyatt Greenway edited this page Jan 31, 2017 · 3 revisions

function remove(obj, path)

Parameters

  • obj
    • (Object) >>> Object to remove property from
  • path
    • (String) Dot notation path to evaluate

Return value

  • (*) Return property value of removed key specified by path

Description

See Also

Examples

var obj = {hello: {world: "!!!"}, arr:[[1,2],3,4,5]};
utils.remove(obj, 'hello.world'); //obj === {hello: {}, arr:[[1,2],3,4,5]}

Clone this wiki locally