Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 6

Javascript Split String With Backslash

I get from server some path like that: \some\some\some\some\mainSome And for display it to front, I… Read more Javascript Split String With Backslash

Babel-preset-env Syntaxerror: Unexpected Token With Spread Properties

Why its not accepting spread properties ? I am using babel-preset-env for this. .babelrc { '… Read more Babel-preset-env Syntaxerror: Unexpected Token With Spread Properties

Javascript: Using `.includes` To Find If An Array Of Objects Contains A Specific Object

I am a bit new to javascript ES6, and I am having difficulty understanding why the below is not fun… Read more Javascript: Using `.includes` To Find If An Array Of Objects Contains A Specific Object

Extend A String Class In Es6

I can write the following in ES5: String.prototype.something=function(){ return this.split(' … Read more Extend A String Class In Es6

Set Key In A Javascript Generator Function

Hi I'm trying to figure out how to set up the key in a symbol iterator, this is the code I have… Read more Set Key In A Javascript Generator Function

React-bootstrap Not Allowing `import {components}` Syntax

This is kinda weird. It works with other projects, but not with React-Bootstrap. For example; impor… Read more React-bootstrap Not Allowing `import {components}` Syntax