UNPKG

hamjest

Version:

A library of composable matchers for defining meaningful and readable assertions in JavaScript.

10 lines (7 loc) 133 B
'use strict'; module.exports = function getName(type) { if (!type.name) { return 'ANONYMOUS FUNCTION'; } return type.name; };