// Strings (variadic)
cn('foo', true && 'bar', 'baz')
//=> 'foo bar baz'
// Objects
cn({ foo: true, bar: false, baz: true })
//=> 'foo baz'
// Objects (variadic)
cn({ foo: true }, { bar: false }, null, { '--foobar': 'hello' })
//=> 'foo --foobar'
// Arrays
cn(['foo', 0, false, 'bar'])
//=> 'foo bar'
// Arrays (variadic)
cn(['foo'], ['', 0, false, 'bar'], [['baz', [['hello'], 'there']]])
//=> 'foo bar baz hello there'
// Kitchen sink (with nesting)
cn('foo', [1 && 'bar', { baz: false, bat: null }, ['hello', ['world']]], 'cya')
//=> 'foo bar hello world cya'
-
Notifications
You must be signed in to change notification settings - Fork 0
darkmaga/cn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published