All files / src index.ts

100% Statements 18/18
100% Branches 0/0
100% Functions 1/1
100% Lines 18/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3410x 10x 10x 10x 10x 10x 10x 10x 10x 10x   10x             10x 10x 10x   10x   10x           10x   10x  
import * as index from './core/index'
import * as verify from './core/verify'
import * as format from './core/format'
import * as is from './core/is'
import * as date from './core/date'
import * as method from './core/method'
import * as math from './core/math'
import * as url from './core/url'
import * as uuid from './core/uuid'
import * as lodash from './core/lodash-tool'
 
import { mixin } from './tools/index'
import { Types } from './types'
 
/**
 * @ignore
 */
function initUtils(): Types {
  const instance: object = Object.create(null)
  console.log(lodash, 'lodash=======', index)
  const arr: Array<any> = [index, verify, format, is, date, method, math, url, uuid, lodash]
 
  mixin(instance, arr)
 
  return instance as Types
}
 
/**
 * @ignore
 */
const _utils = initUtils()
 
export default _utils