mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-28 18:40:08 +00:00
comments...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
98d5b36274
commit
0d1ed3b7ac
@ -361,6 +361,7 @@
|
|||||||
function List(){
|
function List(){
|
||||||
var obj = this instanceof List ?
|
var obj = this instanceof List ?
|
||||||
this
|
this
|
||||||
|
// create an array base object but link it to List...
|
||||||
: Reflect.construct(Array, arguments, List)
|
: Reflect.construct(Array, arguments, List)
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user