![Meet Socket at BlackHat and DEF CON in Las Vegas](https://cdn.sanity.io/images/cgdhsj6q/production/4a3876139ffd3878bb3e7800a14cf4044245dca7-1080x834.jpg?w=400&fit=max&auto=format)
Security News
Meet Socket at BlackHat and DEF CON in Las Vegas
Come meet the Socket team at BlackHat and DEF CON! We're sponsoring some fun networking events and we would love to see you there.
split-if-boxed-bug-x
Advanced tools
Readme
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']
FAQs
Tests if a value is a string with the boxed bug; splits to an array.
The npm package split-if-boxed-bug-x receives a total of 392 weekly downloads. As such, split-if-boxed-bug-x popularity was classified as not popular.
We found that split-if-boxed-bug-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Come meet the Socket team at BlackHat and DEF CON! We're sponsoring some fun networking events and we would love to see you there.
Security News
Learn how Socket's 'Non-Existent Author' alert helps safeguard your dependencies by identifying npm packages published by deleted accounts. This is one of the fastest ways to determine if a package may be abandoned.
Security News
In July, the Python Software Foundation mounted a quick response to address a leaked GitHub token, elected new board members, and added more members to the team supporting PSF and PyPI infrastructure.