JavaScript Array constructor
Example
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.constructor;
// Returns function Array() { [native code] }
Try it Yourself »
Definition and Usage
The constructor property returns the function that created the Array prototype.
For JavaScript arrays the constructor property returns:
function Array() { [native code] }
For JavaScript objects the constructor property returns:
function Object() { [native code] }
Browser Support
constructor is fully supported in all browsers:
| Chrome | IE | Edge | Firefox | Safari | Opera |
| Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
array.constructor
Technical Details
| Return Value: | function Array() { [native code] } |
|---|---|
| JavaScript Version: | ECMAScript 1 |

