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

grid-index

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grid-index - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

5

grid-index.js

@@ -74,3 +74,6 @@ 'use strict';

if (x1 <= min && y1 <= min && max <= x2 && max <= y2) {
return this.keys.slice();
// We use `Array#slice` because `this.keys` may be a `Int32Array` and
// some browsers (Safari and IE) do not support `TypedArray#slice`
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice#Browser_compatibility
return Array.prototype.slice.call(this.keys);

@@ -77,0 +80,0 @@ } else {

2

package.json
{
"name": "grid-index",
"version": "0.1.0",
"version": "1.0.0",
"description": "A 2D spatial index for axis-aligned boxes",

@@ -5,0 +5,0 @@ "main": "grid-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