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

@f/slice

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@f/slice - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

17

lib/index.js
/**
* Vars
*/
var sliced = Array.prototype.slice
/**
* Expose slice
*/
module.exports = slice['default'] = slice
module.exports = slice

@@ -18,3 +12,10 @@ /**

function slice (array, begin, end) {
return sliced.call(array, begin, end)
begin = begin || 0
end = end || array.length
var arr = new Array(array.length)
for (var i = begin; i < end; ++i) {
arr[i - begin] = array[i]
}
return arr
}

@@ -5,3 +5,3 @@ {

"repository": "git://github.com/micro-js/slice.git",
"version": "1.1.1",
"version": "1.1.2",
"license": "MIT",

@@ -8,0 +8,0 @@ "main": "lib/index.js",

@@ -13,3 +13,2 @@ /**

test('should slice arguments', function (t) {
t.deepEqual(toArray(1, 2), [1, 2])

@@ -16,0 +15,0 @@ t.end()

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