Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xotic750/split-if-boxed-bug-x
- Owner: Xotic750
- License: mit
- Created: 2017-09-05T16:07:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:54:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T20:33:45.423Z (about 1 month ago)
- Topics: boxed, browser, javascript, nodejs, string, utility
- Language: JavaScript
- Size: 2.16 MB
- Stars: 0
- Watchers: 2
- 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']
```