We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e0d03 commit 8bce004Copy full SHA for 8bce004
README.md
@@ -14,8 +14,17 @@ npm i @hetarth02/js-array-helpers
14
In your `package.json` add the following, `"type": "module"`.
15
16
```js
17
-import { is_array } from "@hetarth02/js-array-helpers";
+import { is_array, object_to_array } from "@hetarth02/js-array-helpers";
18
19
let arr = [1, 2];
20
console.log(is_array(arr)); // true
21
-```
+
22
+ const objectX = {
23
+ 0:"Apple",
24
+ 1:"Microsoft",
25
+ 2:"Google"
26
+ }
27
28
+ console.log(object_to_array(objectX)) // [ 'Apple', 'Microsoft', 'Google' ]
29
30
+```
0 commit comments