1.0.0 • Published 1 year ago

@imran001/objecttoarray v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

About

This is a simple utility function to convert an object to arrays of keys, values and key-value pairs.

Usage

import objectToArray from "@imran001/objecttoarray";

console.log(objectToArray({ a: 1, b: 2, c: 3 }));
// Output: { keys: ['a', 'b', 'c'], values: [1, 2, 3], keyValues: [['a', 1], ['b', 2], ['c', 3]] }

Hire Me

Want to work with a kickass frontend dev?

Email me at ikhan77727@gmail.com. LinkedIn: https://www.linkedin.com/in/imrankhan001/

P.S: I excel in Remote Work Only