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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -