@@ -4,7 +4,7 @@ import type {
44 MemoizedFunction ,
55 ThrottleSettings ,
66} from "lodash" ;
7- import { bindAll , curry , memoize , merge , range , throttle , times } from "lodash" ;
7+ import _ from "lodash" ;
88import type { TimerFunctionReturn } from "../types/timer-function-return" ;
99import { CollectionUtils } from "./collection-utils" ;
1010
@@ -26,7 +26,7 @@ const CoreUtils = {
2626 * @return Returns object.
2727 */
2828 bindAll < T > ( object : T , ...methodNames : ( string | string [ ] ) [ ] ) : T {
29- return bindAll ( object , ...methodNames ) ;
29+ return _ . bindAll ( object , ...methodNames ) ;
3030 } ,
3131
3232 /**
@@ -38,7 +38,7 @@ const CoreUtils = {
3838 * @return Returns the new curried function.
3939 */
4040 curry < T1 , R > ( func : ( t1 : T1 ) => R , arity ?: number ) : CurriedFunction1 < T1 , R > {
41- return curry ( func , arity ) ;
41+ return _ . curry ( func , arity ) ;
4242 } ,
4343
4444 /**
@@ -94,7 +94,7 @@ const CoreUtils = {
9494 func : T ,
9595 resolver ?: ( ...args : any [ ] ) => any
9696 ) : T & MemoizedFunction {
97- return memoize ( func , resolver ) ;
97+ return _ . memoize ( func , resolver ) ;
9898 } ,
9999
100100 /**
@@ -109,7 +109,7 @@ const CoreUtils = {
109109 object : TObject ,
110110 source : TSource
111111 ) : TObject & TSource {
112- return merge ( object , source ) ;
112+ return _ . merge ( object , source ) ;
113113 } ,
114114
115115 /**
@@ -163,7 +163,7 @@ const CoreUtils = {
163163 * @return Returns a new range array.
164164 */
165165 range ( start : number , end ?: number , step ?: number ) : number [ ] {
166- return range ( start , end , step ) ;
166+ return _ . range ( start , end , step ) ;
167167 } ,
168168
169169 /**
@@ -220,7 +220,7 @@ const CoreUtils = {
220220 wait ?: number ,
221221 options ?: ThrottleSettings
222222 ) : DebouncedFunc < T > {
223- return throttle ( func , wait , options ) ;
223+ return _ . throttle ( func , wait , options ) ;
224224 } ,
225225
226226 /**
@@ -257,7 +257,7 @@ const CoreUtils = {
257257 * @return Returns the array of results.
258258 */
259259 times < TResult > ( n : number , iteratee : ( num : number ) => TResult ) : TResult [ ] {
260- return times ( n , iteratee ) ;
260+ return _ . times ( n , iteratee ) ;
261261 } ,
262262} ;
263263
0 commit comments