You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

split-if-boxed-bug-x

Package Overview
Dependencies
2
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
400
decreased by-1.72%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Travis status Dependency status devDependency status npm version

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

Package last updated on 16 Jul 2019

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc