Skip to content
Myr

fix: use `Array.isArray` check;

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Closes #17

authored by Luke Edwards · committed by Luke Edwards · parent af19571 · Browse files · 4 files+21 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+21 added−5 removed

  • tests:+8 added−0 removed
  • other:+13 added−5 removed

4 files+21 added−5 removed

modified:src/index.js+1 added-1 removed
modified:test/index.js+8 added
modified:package.json+3 added-3 removed
modified:readme.md+9 added-1 removed
1# clsx [![Build Status](https://travis-ci.org/lukeed/clsx.svg?branch=master)](https://travis-ci.org/lukeed/clsx)23> A tiny (223B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module.3> A tiny (229B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module.45This module is available in three formats:67* **ES Module**: `dist/clsx.m.js`
59 unmodified lines
67## Benchmarks6869For snapshots of cross-browser results, check out the [`bench`](/bench) directory~!7071## Support7273All versions of Node.js are supported.7475All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+).7677>**Note:** For IE8 support and older, please install `clsx@1.0.x` and beware of [#17](https://github.com/lukeed/clsx/issues/17).787980## Related8182- [obj-str](https://github.com/lukeed/obj-str) - Similar utility that is faster and smaller (96B) but only works with Objects.83
3 unmodified lines