File.constructor (Property)

A reference to the constructor function for this object.


JavaScript - 1.1
Netscape Enterprise Server - 2.0
Property/method value type:Function object
JavaScript syntax:NESmyFile.constructor

The constructor is that of the built-in File prototype object.

You can use this as one way of creating file objects although it is more popular to use the new File() technique.

This property is useful if you have an object that you want to clone but you don't know what sort of object it is. Simply access the constructor belonging to the object you have a reference to.