Socket
Socket
Sign inDemoInstall

oberknecht-utils

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oberknecht-utils - npm Package Compare versions

Comparing version 1.6.4 to 1.6.5

2

lib-js/utils/arrayModifiers/splice.js

@@ -6,3 +6,3 @@ "use strict";

function splice(arr, index, deleteCount) {
if (!arr || !index || !arr[index])
if (!arr || (0, __1.isNullUndefined)(index) || !arr[index])
return arr;

@@ -9,0 +9,0 @@ let arr_ = (0, __1.recreate)(arr);

@@ -1,5 +0,5 @@

import { recreate } from "..";
import { isNullUndefined, recreate } from "..";
export function splice(arr: any[], index: number, deleteCount?: number): any[] {
if (!arr || !index || !arr[index]) return arr;
if (!arr || isNullUndefined(index) || !arr[index]) return arr;
let arr_ = recreate(arr);

@@ -6,0 +6,0 @@ arr_.splice(index, deleteCount ?? 1);

{
"name": "oberknecht-utils",
"version": "1.6.4",
"version": "1.6.5",
"description": "Utils for oberknecht packages",

@@ -5,0 +5,0 @@ "main": "./lib-ts/utils/index",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc