UPDATE: Recently a brilliant article from Mozilla came up. Read it if you're curious.   As you may know they are planning to include new Symbol primitive type in ECMAScript 6 (not to mention some other crazy stuff). I always thought that the...
I just stumbled upon the documentation for the new (proposed for ES6, but already implemented in Firefox, Chrome & Opera) datatype in JavaScript, Symbol:  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol htt...
What is the point of the 'Symbol' type in ECMA-262-v6? Fast path implementation for object keys? What does it do under the hood - hash it with the guarantee that the underlying data is immutable?...
I've been around the block when it comes to languages, having worked with everything from C# to Lisp to Scala to Haskell, and in every language that supported them, symbols have acted pretty much the same; that is, any two symbols with the same n...
I wonder if there is a nice way to get the descriptions of a Symbol.  For example,  var s = Symbol(5);   The default implementation of the toString will simply print      Symbol(5)  I would like to find a way to extract the actual description i.e. 5...
Where can I find the list of symbols made available to us by d3.js  which is referred by this line of code:   d3.svg.symbol().type(/*Name of the symbol type that is available to us to use*/'triangle')   Some of the available symbols include t...
I am reading You Don't Know JS: ES6 & Beyond and I encountered this snippet in Symbol.species section.    class Cool {     // defer `@@species` to derived constructor     static get [Symbol.species]() { return this; }      again() {         r...
I am trying to remove special characters from a piece of text, but using the following regular expression  var desired = stringToReplace.replace(/[^\w\s]/gi, '')   (found here: javascript regexp remove all special characters)  has the negativ...
It's so hard to search for symbols in Google, so I ask here instead.  <!-- looks like a comment for me, but it doesn't work like html. Or it's a one line comment just like // ?  What is the purpose and benefit of using this? Thanks  sa...
I have checked many questions here but none has my answer. I appreciate if you direct me to the right path.   I like to make a new symbol (not a font or related to any alphabet) like creating a new language alphabets that could be recognized or trans...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.