Skip to content

Commit

Permalink
1.5.15-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Apr 24, 2018
1 parent ad24367 commit 217e6a1
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
12 changes: 7 additions & 5 deletions dist/xe-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* xe-utils.js v1.5.15
* xe-utils.js v1.5.15-beta.0
* (c) 2017-2018 Xu Liangzhan
* ISC License.
* @preserve
Expand All @@ -13,7 +13,7 @@

function XEUtils () { }

XEUtils.version = '1.5.15'
XEUtils.version = '1.5.15-beta.0'
XEUtils.mixin = function (methods) {
return Object.assign(XEUtils, methods)
}
Expand Down Expand Up @@ -842,9 +842,11 @@
}

function cloneArr (arr) {
return arrayExports.arrayMap(arr, function (val, index) {
return deepClone(val)
})
var result = []
for (var index = 0, len = arr.length; index < len; index++) {
result.push(deepClone(arr[index]))
}
return result
}

function deepClone (obj) {
Expand Down
4 changes: 2 additions & 2 deletions dist/xe-utils.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xe-utils",
"version": "1.5.15",
"version": "1.5.15-beta.0",
"description": "XEUtils 函数库",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function XEUtils () {}

XEUtils.version = '1.5.15'
XEUtils.version = '1.5.15-beta.0'
XEUtils.mixin = function (methods) {
return Object.assign(XEUtils, methods)
}
Expand Down
2 changes: 1 addition & 1 deletion src/method/array.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

var numberExports = require('./number')
var baseExports = require('./base')
var numberExports = require('./number')

/**
* 数组去重
Expand Down
9 changes: 5 additions & 4 deletions src/method/base.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

var arrayExports = require('./array')
var dateExports = require('./date')

var objectToString = Object.prototype.toString
Expand Down Expand Up @@ -589,9 +588,11 @@ function cloneObj (obj) {
}

function cloneArr (arr) {
return arrayExports.arrayMap(arr, function (val, index) {
return deepClone(val)
})
var result = []
for (var index = 0, len = arr.length; index < len; index++) {
result.push(deepClone(arr[index]))
}
return result
}

function deepClone (obj) {
Expand Down
2 changes: 1 addition & 1 deletion src/method/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

var arrayExports = require('./array')
var baseExports = require('./base')
var arrayExports = require('./array')
var browseExports = require('./browse')
var cookieExports = require('./cookie')
var dateExports = require('./date')
Expand Down

0 comments on commit 217e6a1

Please sign in to comment.