Socket
Socket
Sign inDemoInstall

array-slice-x

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-slice-x - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

10

index.js
/**
* @file Cross-browser array slicer.
* @version 1.1.0
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -47,8 +47,8 @@ * @copyright Xotic750

*
* @param {Array|Object} array The array to slice.
* @param {number} [start] Zero-based index at which to begin extraction.
* @param {Array|Object} array - The array to slice.
* @param {number} [start] - Zero-based index at which to begin extraction.
* A negative index can be used, indicating an offset from the end of the
* sequence. slice(-2) extracts the last two elements in the sequence.
* If begin is undefined, slice begins from index 0.
* @param {number} [end] Zero-based index before which to end extraction.
* @param {number} [end] - Zero-based index before which to end extraction.
* Slice extracts up to but not including end. For example, slice(1,4)

@@ -64,3 +64,3 @@ * extracts the second element through the fourth element (elements indexed

* the end of the sequence (arr.length).
* @return {Array} A new array containing the extracted elements.
* @returns {Array} A new array containing the extracted elements.
* @example

@@ -67,0 +67,0 @@ * var slice = require('array-slice-x');

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
/**
* @file Cross-browser array slicer.
* @version 1.1.0
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -48,8 +48,8 @@ * @copyright Xotic750

*
* @param {Array|Object} array The array to slice.
* @param {number} [start] Zero-based index at which to begin extraction.
* @param {Array|Object} array - The array to slice.
* @param {number} [start] - Zero-based index at which to begin extraction.
* A negative index can be used, indicating an offset from the end of the
* sequence. slice(-2) extracts the last two elements in the sequence.
* If begin is undefined, slice begins from index 0.
* @param {number} [end] Zero-based index before which to end extraction.
* @param {number} [end] - Zero-based index before which to end extraction.
* Slice extracts up to but not including end. For example, slice(1,4)

@@ -65,3 +65,3 @@ * extracts the second element through the fourth element (elements indexed

* the end of the sequence (arr.length).
* @return {Array} A new array containing the extracted elements.
* @returns {Array} A new array containing the extracted elements.
* @example

@@ -68,0 +68,0 @@ * var slice = require('array-slice-x');

!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/**
* @file Cross-browser array slicer.
* @version 1.1.0
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -5,0 +5,0 @@ * @copyright Xotic750

{
"name": "array-slice-x",
"version": "1.1.0",
"version": "1.2.0",
"description": "Cross-browser array slicer.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Xotic750/array-slice-x",

@@ -26,3 +26,3 @@ <a href="https://travis-ci.org/Xotic750/array-slice-x"

**Version**: 1.1.0
**Version**: 1.2.0
**Author**: Xotic750 <Xotic750@gmail.com>

@@ -29,0 +29,0 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

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