deno.land / x / mongoose@6.7.5 / lib / helpers / getFunctionName.js

getFunctionName.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
'use strict';
const functionNameRE = /^function\s*([^\s(]+)/;
module.exports = function(fn) { return ( fn.name || (fn.toString().trim().match(functionNameRE) || [])[1] );};
mongoose

Version Info

Tagged at
a year ago