Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arrayme

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayme - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

CHANGELOG.md

@@ -7,2 +7,5 @@ # Change Log

## [1.0.3] - 2018-03-28
- **Added** support for old browser
## [1.0.2] - 2017-12-06

@@ -9,0 +12,0 @@ - Typo fix

@@ -0,1 +1,7 @@

if (!Array.isArray) {
Array.isArray = function(arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
/**

@@ -5,5 +11,6 @@ * Transforms a value into array

* @param [checkNull=true] {boolean} if true returns empty array
* @returns {*}
* @returns [] | *
*/
module.exports = (value, checkNull = true) => {
module.exports = function (value, checkNull) {
checkNull = checkNull === undefined ? true : checkNull;
if ((checkNull && value === null) || value === undefined)

@@ -10,0 +17,0 @@ return [];

2

package.json
{
"name": "arrayme",
"version": "1.0.2",
"version": "1.0.3",
"description": "Transforms a value to an array",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc