Package Exports
- split-if-boxed-bug-x
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (split-if-boxed-bug-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
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']