as-typed-array
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

as-typed-array

npm typescript

Make any value an array.

If I should maintain this repo, please ⭐️ GitHub stars

DM me on Twitter if you have questions or suggestions. Twitter Follow


Installation

yarn add as-typed-array
npm install as-typed-array
pnpm add as-typed-array

Usage

import asArray from "as-typed-array";

asArray(["ok"]); // ["ok"]

asArray("ok"); // ["ok"]

asArray({ ok: true }); // [{ ok: true }]

asArray(undefined); // [];

Dev Dependencies

  • autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.

License license

MIT

Readme

Keywords

Package Sidebar

Install

npm i as-typed-array

Weekly Downloads

22

Version

3.0.1

License

MIT

Unpacked Size

3.82 kB

Total Files

8

Last publish

Collaborators

  • bconnorwhite