@unction/withoutkeyrecursive
v12.15.0
Published
Returns a copy of an iterable without a key, no matter how deep the tree
Downloads
132
Readme
@unction/withoutKeyRecursive
A => Record<string | number | symbol, B> | Map<A, B> => Record<string | number | symbol, B> | Map<A, B>
Returns a copy of an iterable without a key, no matter how deep the tree.
withoutKeyRecursive("__abstraction__")(
{
id: "1",
name: "Kurtis Rainbolt-Greene",
attributes: {
version: "v1",
namespace: "accounts",
__abstraction__: {errors: []},
},
__abstraction__: {errors: []},
}
)
Which will return:
{
id: "1",
name: "Kurtis Rainbolt-Greene",
attributes: {
version: "v1",
namespace: "accounts",
},
}