$ gnpm install as-typed-array
Make any value an array.
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
yarn add as-typed-array
npm install as-typed-array
pnpm add as-typed-array
import asArray from "as-typed-array";
asArray(["ok"]); // ["ok"]
asArray("ok"); // ["ok"]
asArray({ ok: true }); // [{ ok: true }]
asArray(undefined); // [];
Copyright 2013 - present © cnpmjs.org | Home |