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

array-back

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-back - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

14

dist/index.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.arrayBack = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.arrayBack = factory());
}(this, (function () { 'use strict';

@@ -55,13 +55,9 @@

return input
}
if (input === undefined) {
} else if (input === undefined) {
return []
}
if (isArrayLike(input) || input instanceof Set) {
} else if (isArrayLike(input) || input instanceof Set) {
return Array.from(input)
} else {
return [input]
}
return [input]
}

@@ -68,0 +64,0 @@

{
"name": "array-back",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "4.0.1",
"version": "5.0.0",
"description": "Guarantees an array back",

@@ -18,3 +18,3 @@ "repository": "https://github.com/75lb/array-back.git",

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -35,9 +35,9 @@ "files": [

"devDependencies": {
"@test-runner/web": "^0.2.1",
"c8": "^6.0.1",
"coveralls": "^3.0.7",
"esm-runner": "^0.2.0",
"@test-runner/web": "^0.3.5",
"c8": "^7.3.0",
"coveralls": "^3.1.0",
"esm-runner": "^0.3.4",
"isomorphic-assert": "^0.1.1",
"jsdoc-to-markdown": "^5.0.2",
"rollup": "^1.26.5"
"jsdoc-to-markdown": "^6.0.1",
"rollup": "^2.26.8"
},

@@ -44,0 +44,0 @@ "standard": {

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

[![view on npm](https://img.shields.io/npm/v/array-back.svg)](https://www.npmjs.org/package/array-back)
[![npm module downloads](https://img.shields.io/npm/dt/array-back.svg)](https://www.npmjs.org/package/array-back)
[![view on npm](https://badgen.net/npm/v/array-back)](https://www.npmjs.org/package/array-back)
[![npm module downloads](https://badgen.net/npm/dt/array-back)](https://www.npmjs.org/package/array-back)
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=REPOSITORY)
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/array-back)](https://github.com/75lb/array-back/network/dependents?dependent_type=PACKAGE)
[![Build Status](https://travis-ci.org/75lb/array-back.svg?branch=master)](https://travis-ci.org/75lb/array-back)
[![Coverage Status](https://coveralls.io/repos/github/75lb/array-back/badge.svg?branch=master)](https://coveralls.io/github/75lb/array-back?branch=master)
[![Dependency Status](https://badgen.net/david/dep/75lb/array-back)](https://david-dm.org/75lb/array-back)
[![Coverage Status](https://coveralls.io/repos/github/75lb/array-back/badge.svg)](https://coveralls.io/github/75lb/array-back)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

@@ -81,2 +82,2 @@

&copy; 2015-19 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).
&copy; 2015-20 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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