diff options
Diffstat (limited to 'node_modules/locutus/php/funchand/create_function.js')
-rw-r--r-- | node_modules/locutus/php/funchand/create_function.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/locutus/php/funchand/create_function.js b/node_modules/locutus/php/funchand/create_function.js deleted file mode 100644 index 1d75b5d..0000000 --- a/node_modules/locutus/php/funchand/create_function.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function create_function(args, code) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/create_function/ - // original by: Johnny Mast (http://www.phpvrouwen.nl) - // reimplemented by: Brett Zamir (http://brett-zamir.me) - // example 1: var $f = create_function('a, b', 'return (a + b)') - // example 1: $f(1, 2) - // returns 1: 3 - - try { - return Function.apply(null, args.split(',').concat(code)); - } catch (e) { - return false; - } -}; -//# sourceMappingURL=create_function.js.map
\ No newline at end of file |