Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged ECMAScript

0 votes
564 views
1 answer
    I'm writing a node app with es6 using babel transpiler. I have 2 files index.js & my-module.js on my ... .babelrc config to support it? Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
421 views
1 answer
    Is there a clean way to return a new object that omits certain properties that the original object contains ... use something like lodash? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
643 views
1 answer
    Note: I already went through the below SO Question and 7 Answers (as of now) about Symbols, WeekMaps and Maps, ... Public Method } // end class See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
469 views
1 answer
    Say, I have an object: const user = {_id: 1234, firstName: 'John', lastName: 'Smith'} I want to create ... there a better way to do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
341 views
1 answer
    What I want to do is to use as many immutable variables as possible, thus reducing the number of moving parts in my ... a+'!'); } Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    I have two arrays that I want to merge together to one array of objects... The first array is of dates ( ... date: metrodates[index]}); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
532 views
1 answer
    Today I came across the following syntax which I didn't recognize: const createUser = ({ age = 1, name = ' ... 5 }); console.log(defaultP); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    I am trying to decorate a class with a decorator (a-la-angular style), and add methods and properties to it. ... completion, type safety, etc ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
336 views
1 answer
    In the online REPL of Babel JS (http://babeljs.io/repl/), when I type in : let a = (x) => x+1 ... to assign a named function to a variable? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
671 views
1 answer
    Hey there I have this uiTypes.js file like this: export default { SELECT_ITEM: 'SELECT_ITEM', DESELECT_ITEM: ' ... , Am I missing something? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
389 views
1 answer
    I am trying to extend Promise: class PersistedPromise extends Promise { } Then call the static resolve on the ... by traceur and/or node? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
541 views
1 answer
    I am using babel to transpile. I have class BaseComponent which is extended by class Logger. When I run new Logger() ... n")); //throws here } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
368 views
1 answer
    Is there a way to use ES6 and modules with PhantomJS? I can transpile each file from ES6 to ES5 using ... to use ES6 modules with PhantomJS? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
440 views
1 answer
    Suppose I have the following map object const items = new Map([['item1','A'], ['item2','B'], ['item3', ... answer - Array.from(items.keys())[2] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
577 views
1 answer
    I'm hearing that VS 2015 is supporting the new js syntax but when I open up a project written using aurelia.js ... didn't mess up any settings. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
420 views
1 answer
    The ES6 code snippet below is invalid. It used to be valid. I can still run it in old versions of Traceur but ... people) { console.log(phone) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
420 views
1 answer
    I want to better understand es6 arrow functions. Given the following example: export default function applyMiddleware(. ... we see here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I'm puzzled by something in the ES6 Promise API. I can see a clear use case for submitting multiple ... something at a philosophical level? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
632 views
1 answer
    Is it or will it be possible to have an ES6 class getter return a value from an ES2017 await / async function. ... foo.bar.should.equal('baz'); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
392 views
1 answer
    I recently starting to drop underscore/lodash overuse on (some of) my projects and realize that there's no full ... the polyfill instead? Why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
712 views
1 answer
    I'm using babel6 and for my pet project I'm creating a wrapper for XMLHttpRequest, for the methods I can ... .xhr.status; Is this intentional? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
455 views
1 answer
    My question is : What's the difference between babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2 and ... when we develop with ES6? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
486 views
1 answer
    I understand why var takes that name - it is variable, const - it is a constant, but what is the meaning ... the current block? Let it be? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
380 views
1 answer
    I would like to use Map instead of object map to declare some keys and values. But Typescript doesn't seem ... [Types.REMOVE, handleRemove] ]); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
414 views
1 answer
    So I saw a function that was, quite frankly beautiful in its simplicity as it allowed you to find the global object ... is in strict mode }()) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
399 views
1 answer
    Recently stumbled upon the dynamic import proposal and also this Youtube video . Thought would be a great idea to ... with a CodeSandbox link. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
337 views
1 answer
    I came across an example from eslint documentation on arrow function: // The intent is not clear var x = a => 1 ... .log(x); console.log(a); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
342 views
1 answer
    When I try to merge two objects using the spread operator conditionally, it works when the condition is true or false: ... && arr1)]; // Error See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...