As mentioned in the document https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions
Arrow functions do not have prototype properties
but when I play it on the violin, why does it give object? http://es6console.com/iwyii5vm/
object
Why does he give an object?
var Foo = () => {}; console.log(Foo.prototype);
If you run this code in your own ES6 engine, there will be no property for arrow functions prototype.
prototype
, ES5, prototype.
( )
es6console.com , .
es6console.com
, , , es6console es6. Chrome, .
Source: https://habr.com/ru/post/1664382/More articles:Merge multiple observable arrays into a new array of objects - javascriptProtractor browser.driver.getCurrentUrl vs browser.getCurrentUrl - angularjsDeque vs Queue Speed ββ- c ++R / ShinyApp does not show plot_ly in the browser, but only shows the graph in the view pane - rMerge subarrays with Observables - observableRemove selected text from the , based on a user-entered data attribute - javascriptR / Shiny charts are not displayed in the browser - rconfig.from_object does not work in Flask with Python 3 - pythonConsequences of installing Weblogic 12c on Windows 10 - windowsSwipe LI from left to right without CSS or JS scrolling? - javascriptAll Articles