medialize/ally.js

View on GitHub
test/helper/function-name.js

Summary

Maintainability
A
0 mins
Test Coverage
define([], function() {
  'use strict';

  return function getFunctionName(func) {
    var s = String(func).match(/function\s+([^(]+)\(/);
    return s && s[1] || null;
  };
});