Sha256: 618fe2f92083bf2b750d2090b07c3cf556484d0ab089c13d6e0ca0c79fe3483a

Contents?: true

Size: 317 Bytes

Versions: 29

Compression:

Stored size: 317 Bytes

Contents

'use strict';

var validFunction = require('../valid-function')

  , re = new RegExp('^\\s*function[\\0-\'\\)-\\uffff]*' +
	'\\(([\\0-\\(\\*-\\uffff]*)\\)\\s*\\{([\\0-\\uffff]*)\\}\\s*$');

module.exports = function () {
	var data = String(validFunction(this)).match(re);
	return { args: data[1], body: data[2] };
};

Version data entries

29 entries across 19 versions & 7 rubygems

Version Path
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/function/#/to-string-tokens.js