@imran001/objecttoarray
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @imran001/objecttoarray

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

13.6 kB

Total Files

4

Last publish

Collaborators

  • imran001