数组工具

Methods

(static) flattenArray(array) → {Array}

Description:
  • 多维数组扁平化
Source:
  • utils/ArrayProcess.js, line9
Parameters:
Name Type Description
array *
Returns:
展开后的数组
Type
Array

(static) flattenArrayAndInsertHeight(array, height) → {Array}

Description:
  • 多维数组扁平化的同时在每个数组后插入高程
Source:
  • utils/ArrayProcess.js, line20
Parameters:
Name Type Description
array Array
height number
Returns:
展开后的数组
Type
Array