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 year ago
JSON representation
Tests if a value is a string with the boxed bug; splits to an array.
- Host: GitHub
- URL: https://github.com/xotic750/split-if-boxed-bug-x
- Owner: Xotic750
- License: mit
- Created: 2017-09-05T16:07:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:54:30.000Z (over 3 years ago)
- Last Synced: 2025-04-30T20:09:20.476Z (about 1 year ago)
- Topics: boxed, browser, javascript, nodejs, string, utility
- Language: JavaScript
- Size: 2.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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']
```