From d71430fd5b597138e664bd3aece149ae25811eb7 Mon Sep 17 00:00:00 2001 From: "Marius B. Kotsbak" Date: Wed, 21 Dec 2016 16:35:35 +0100 Subject: [PATCH] Paranteses needed for ES6 Seems like .toDate will just return the function and not call it, so add () --- scala-js-website/doc/sjs_for_js/es6_to_scala_part3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scala-js-website/doc/sjs_for_js/es6_to_scala_part3.md b/scala-js-website/doc/sjs_for_js/es6_to_scala_part3.md index d50b14f..95ab2ba 100644 --- a/scala-js-website/doc/sjs_for_js/es6_to_scala_part3.md +++ b/scala-js-website/doc/sjs_for_js/es6_to_scala_part3.md @@ -310,7 +310,7 @@ class_. String.prototype.toDate = function() { return convertToDate(this); } -"2015-10-09".toDate; // = {year:2015,month:10,day:9} +"2015-10-09".toDate(); // = {year:2015,month:10,day:9} {% endhighlight %} {% endcolumn %}