I would like to know the difference between the codes below:
import module from '@module'
import module from 'module'
Recently I had a problem where I had to stop using
import firebase from 'firebase'
and put
import firebase from '@f...
I have a question, I am studying ES6, but I do not understand much what the Arrow Function replaces, I researched and saw what the function is
this . I would like to know better with an example without and with Arrow Function, and to kn...
Good evening,
I'm building a dynamic form using ionic2, but the multiple-choice components do not accept the required property how would I do this in ionic? The component that I'm trying to put the required property on is the...
How do I resolve the conflict between this of a jQuery loop performed within a method of a class in javascript (ECMA6)?
Example, metodoUm loops using jQuery and for each iteration of the loop, calls metodoDois passing the...
When you run the following code:
$("button").on("click", function(){
console.log("Meu valor é: " + $(this).val());
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><buttonv...
I'm about a day and a half researching about Maps and Proxies to delve deeper into the issue of looking at arrays, objects, and so on.
But I came across a problem, I can not use Proxy in Map.
When it comes to an ordinary array, I can use Proxy w...
How can I get a Object.freeze on just one object?
Here's the example below where I create a , replicate a to b , freezo b , and try to re-assign a value to a . But it is no longer possible. Because? How d...
In the code below it would be interesting if I could define i as let and be able to keep pass as var, can you do that without declaring pass in a row above?
const randPass = () => {
for (var i = 0, pass = ""; i < 8; i++) {
pa...
I have the following JSON
{
"Id":"ssjsjs",
"Name":"STFksks S.A",
"Alias":"STF jnsns S.A",
"DocumentId":"010101",
"Accounts":[
"hahadkjkjteste"
],
"CountryCode":"BRA",
"Country":"Brasil",
"Address":{
"Post...
Reading the Ghost code, CMS platform based on NodeJS I found a file with the following statement:
import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import 'ghost/utils/lin...