mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-01-18 23:36:47 +00:00
14 lines
411 B
JavaScript
14 lines
411 B
JavaScript
define(function() {
|
|
/**
|
|
* Object.prototype.toString can be used with every object and allows you to
|
|
* get its class easily. Abstracting it off of an object prevents situations
|
|
* where the toString property has been overridden
|
|
*
|
|
* @access private
|
|
* @function toStringFn
|
|
* @returns {Function} An abstracted toString function
|
|
*/
|
|
var toStringFn = ({}).toString;
|
|
return toStringFn;
|
|
});
|