From 2d4fda73b4bca109884ed6f750b958493327e657 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 10 Aug 2023 20:42:04 +0300 Subject: [PATCH] notes.... Signed-off-by: Alex A. Naanou --- js-types-n-oop.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js-types-n-oop.js b/js-types-n-oop.js index 9735df1..b49ebef 100755 --- a/js-types-n-oop.js +++ b/js-types-n-oop.js @@ -361,7 +361,10 @@ function List(){ var obj = this instanceof List ? this - // create an array base object but link it to List... + // create an array base object but link it to List as prototype... + // NOTE: if List is not linked to Array the instances will + // not have access to any of the array methods but will + // support the indexing syntax. : Reflect.construct(Array, arguments, List) return obj }