ecmascript 6 - What's the sytax for importing all Math functions in ECMA 6? -
i have this:
import * math "lib/math"; alert("2π = " + math.sum(math.pi, math.pi)); and know possible:
import {sum, pi} "lib/math"; alert("2π = " + sum(pi, pi)); but there way import math functions in namespace @ once? this?
import {*} "lib/math"; alert("2π = " + sum(pi, pi)); or this?
import "lib/math"; //compiles fine in babel isn't in spec alert("2π = " + sum(pi, pi));
no there not. not sure else other referring spec.
Comments
Post a Comment