Skip to main content

Bug Tracker

Side navigation

#11160 closed feature (worksforme)

Opened January 11, 2012 05:32PM UTC

Closed January 11, 2012 05:35PM UTC

Function to get object type

Reported by: Daved <> Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Currently, there is no built in method to detect the type of object being used if it is created using a constructor. Using "''typeof''" on an object defined using "''new Array()''" yields "''object''" as a result without revealing what type of "''object''" you are working with. It would be useful to have a built-in function to determine the type of object.

Referring to the fiddle:, using the object constructor, you can determine the type of object passed in.

Attachments (0)
Change History (1)

Changed January 11, 2012 05:35PM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed