Convert an object to array with/without given key-prefix.
Functionality:
-
objectToArray
:[value1, ]
-
objectToKeyValueArray
:[[key, value],]
You might want to .flat() the output.
Look at spec for examples.
Also see:
- atoo: [github](https://github.com/IAmAnubhavSaini/atoo/] | npm
The MIT License (MIT)
Copyright (c) 2016-2025 Anubhav Saini