webpack lodash 간소화
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import _, {random} from "lodash";
|
||||
import {random, range} from "lodash"
|
||||
|
||||
declare global {
|
||||
interface Window { formStart: any; }
|
||||
@@ -11,7 +11,7 @@ function formStart() {
|
||||
|
||||
const a = 10;
|
||||
const b:number[] = [];
|
||||
for(const v of _.range(10)){
|
||||
for(const v of range(10)){
|
||||
b.push(random()*v);
|
||||
}
|
||||
console.log(a + 10);
|
||||
|
||||
Reference in New Issue
Block a user