map_remove

map_remove($map, $keys...)

Returns a new map with keys removed.

Like all map functions, map-merge() returns a new map rather than modifying its arguments in place.

Examples:

map-remove(("foo": 1, "bar": 2), "bar") => ("foo": 1)
map-remove(("foo": 1, "bar": 2, "baz": 3), "bar", "baz") => ("foo": 1)
map-remove(("foo": 1, "bar": 2), "baz") => ("foo": 1, "bar": 2)

Parameters:

  • $map (Map)
  • $keys ([Base])

Returns:

  • (Map)

Raises:

  • (ArgumentError) if $map is not a map
doc_Sass
2016-11-11 13:09:14
Comments
Leave a Comment

Please login to continue.