Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xotic750/split-if-boxed-bug-x

Tests if a value is a string with the boxed bug; splits to an array.
https://github.com/xotic750/split-if-boxed-bug-x

boxed browser javascript nodejs string utility

Last synced: about 1 month ago
JSON representation

Tests if a value is a string with the boxed bug; splits to an array.

Awesome Lists containing this project

README

        


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## split-if-boxed-bug-x

Tests if a value is a string with the boxed bug; splits to an array.

### `module.exports(value)` ⇒ \*

This method tests if a value is a string with the boxed bug; splits to an
array for iteration; otherwise returns the original value.

**Kind**: Exported function
**Returns**: \* - An array or characters if value was a string with the boxed bug;
otherwise the value.

| Param | Type | Description |
| ----- | --------------- | ----------------------- |
| value | \* | The value to be tested. |

**Example**

```js
import splitIfBoxedBug from 'split-if-boxed-bug-x';

// No boxed bug
console.log(splitIfBoxedBug('abc')); // 'abc'

// Boxed bug
console.log(splitIfBoxedBug('abc')); // ['a', 'b', 'c']
```