Pops
Remove the given keys from the given object.
๐ฌ Usage
<script>
import {pops} from "@sveu/shared/dicts"
const obj = {"Mila": "Kunis", "Emma": "Watson", "Scarlett": "Johansson"}
pops(obj, ["Mila", "Emma"])
obj // {"Scarlett": "Johansson"}
</script>
๐ฉโ๐ปAPI
๐ป Arguments
Name | Description | Type | Required |
---|---|---|---|
obj | object to pop from | Record<string | number | symbol, any> | yes |
keys | keys to pop | string[] | yes |
๐งช Playground
Source Code ๐
Source Code
Last update: 2023-02-14
Authors: Mohamed-Kaizen