rc-tree
Advanced tools
Comparing version 5.3.5 to 5.3.6
@@ -15,2 +15,3 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
export function arrDel(list, value) { | ||
if (!list) return []; | ||
var clone = list.slice(); | ||
@@ -26,3 +27,3 @@ var index = clone.indexOf(value); | ||
export function arrAdd(list, value) { | ||
var clone = list.slice(); | ||
var clone = (list || []).slice(); | ||
@@ -29,0 +30,0 @@ if (clone.indexOf(value) === -1) { |
@@ -37,2 +37,3 @@ "use strict"; | ||
function arrDel(list, value) { | ||
if (!list) return []; | ||
var clone = list.slice(); | ||
@@ -49,3 +50,3 @@ var index = clone.indexOf(value); | ||
function arrAdd(list, value) { | ||
var clone = list.slice(); | ||
var clone = (list || []).slice(); | ||
@@ -52,0 +53,0 @@ if (clone.indexOf(value) === -1) { |
{ | ||
"name": "rc-tree", | ||
"version": "5.3.5", | ||
"version": "5.3.6", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
7304
341908
60