4 ms·
Not really. Also, typeof doesn't work at all on object literals. Best just to see if it quacks, or barks :-) (i.e. - does the object define a given function/
by Roboprog 10y ago
Not really. Also, typeof doesn't work at all on object literals.
Best just to see if it quacks, or barks :-)
(i.e. - does the object define a given function/"method")