Socket
Socket
Sign inDemoInstall

split-if-boxed-bug-x

Package Overview
Dependencies
11
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    split-if-boxed-bug-x

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


Version published
Weekly downloads
330
increased by5.43%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

ParamTypeDescription
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']

Keywords

FAQs

Last updated on 28 Aug 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc