Skip to content

Commit 0925c7d

Browse files
committed
releases 3.8.2
1 parent 740a03c commit 0925c7d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

func/toArrayTree.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ var clone = require('./clone')
77
var eqNull = require('./eqNull')
88
var each = require('./each')
99
var remove = require('./remove')
10-
var slice = require('./slice')
1110

1211
var assign = require('./assign')
1312

@@ -80,7 +79,7 @@ function toArrayTree (array, options) {
8079
treeMaps[parentId].push(treeData)
8180
treeData[optChildren] = treeMaps[id]
8281
if (optMapChildren) {
83-
treeData[optMapChildren] = slice(treeMaps[id], 0)
82+
treeData[optMapChildren] = treeMaps[id]
8483
}
8584

8685
if (!optStrict || (optStrict && eqNull(parentId))) {

func/toDateString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function toDateString (date, format, options) {
4646
var apm = hours < 12 ? 'am' : 'pm'
4747
var formats = assign({}, setupDefaults.parseDateRules || setupDefaults.formatStringMatchs, options ? options.formats : null)
4848
var fy = function (match, length) {
49-
return ('' + helperGetDateFullYear(date)).substr(4 - length)
49+
return ('' + helperGetDateFullYear(date)).substring(4 - length)
5050
}
5151
var fM = function (match, length) {
5252
return padStart(helperGetDateMonth(date) + 1, length, '0')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xe-utils",
3-
"version": "3.8.1",
3+
"version": "3.8.2",
44
"description": "JavaScript 函数库、工具类",
55
"main": "index.js",
66
"unpkg": "dist/xe-utils.umd.min.js",

0 commit comments

Comments
 (0)