Skip to content

Instantly share code, notes, and snippets.

@beardlessman
Created March 30, 2019 09:41
Show Gist options
  • Save beardlessman/6ca41ef29939ecf430f8a2209cfeb1a2 to your computer and use it in GitHub Desktop.
Save beardlessman/6ca41ef29939ecf430f8a2209cfeb1a2 to your computer and use it in GitHub Desktop.
Возвращает класс объекта
const classof = object => Object.prototype.toString.call(object).slice(8, -1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment