Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-class.js 499B

123456789101112131415161718
  1. "use strict";
  2. var toString = require("@sinonjs/commons").prototypes.object.toString;
  3. /**
  4. * Returns the internal `Class` by calling `Object.prototype.toString`
  5. * with the provided value as `this`. Return value is a `String`, naming the
  6. * internal class, e.g. "Array"
  7. *
  8. * @private
  9. * @param {*} value - Any value
  10. * @returns {string} - A string representation of the `Class` of `value`
  11. */
  12. function getClass(value) {
  13. return toString(value).split(/[ \]]/)[1];
  14. }
  15. module.exports = getClass;