Liking cljdoc? Tell your friends :D

js.Function

The Function constructor creates a new Function object. Calling constructor directly can create functions dynamically, but suffers security and similar (but far less significant) performance issues js.eval. However, unlike eval, the Function constructor creates which execute in the global scope only.

The Function constructor creates a new Function object. Calling
constructor directly can create functions dynamically, but suffers
security and similar (but far less significant) performance issues
`js.eval`. However, unlike eval, the Function constructor creates
which execute in the global scope only.
raw docstring

applycljs

(apply this & args)

Method.

The apply() method calls a function with a given this value, arguments provided as an array (or an array-like object).

function.apply(thisArg, [argsArray])

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply

Method.

The apply() method calls a function with a given this value,
arguments provided as an array (or an array-like object).

`function.apply(thisArg, [argsArray])`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply`
sourceraw docstring

argumentscljs

(arguments this)

Property.

[Deprecated]

The function.arguments property refers to an an array-like object to the arguments passed to a function. Use the simple variable instead. This property is forbidden in strict model.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments

Property.

[Deprecated]

The function.arguments property refers to an an array-like object
to the arguments passed to a function. Use the simple variable
instead. This property is forbidden in strict model.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments`
sourceraw docstring

aritycljs

(arity this)

Property.

[Obsolute]

The arity property used to return the number of arguments expected the function, however, it no longer exists and has been replaced the Function.prototype.length property.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity

Property.

[Obsolute]

The arity property used to return the number of arguments expected
the function, however, it no longer exists and has been replaced
the `Function.prototype.length` property.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity`
sourceraw docstring

bindcljs

(bind this & args)

Method.

The bind() method creates a new function that, when called, has this keyword set to the provided value, with a given sequence arguments preceding any provided when the new function is called.

function.bind(thisArg[, arg1[, arg2[, ...]]])

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind

Method.

The bind() method creates a new function that, when called, has
this keyword set to the provided value, with a given sequence
arguments preceding any provided when the new function is called.

`function.bind(thisArg[, arg1[, arg2[, ...]]])`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind`
sourceraw docstring

callcljs

(call this & args)

Method.

The call() method calls a function with a given this value and provided individually.

function.call(thisArg, arg1, arg2, ...)

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call

Method.

The call() method calls a function with a given this value and
provided individually.

`function.call(thisArg, arg1, arg2, ...)`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call`
sourceraw docstring

callercljs

(caller this)

Property.

[Non Standard]

The function.caller property returns the function that invoked specified function. This property is forbidden in strict mode.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller

Property.

[Non Standard]

The function.caller property returns the function that invoked
specified function. This property is forbidden in strict mode.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller`
sourceraw docstring

display-namecljs

(display-name this)

Property.

[Non Standard]

The function.displayName property returns the display name of function.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName

Property.

[Non Standard]

The function.displayName property returns the display name of
function.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName`
sourceraw docstring

is-generatorcljs

(is-generator this)

Method.

[Non Standard]

The non-standard isGenerator() method used to determine whether not a function is a generator. It has been removed from Firefox with version 58.

fun.isGenerator()

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/isGenerator

Method.

[Non Standard]

The non-standard isGenerator() method used to determine whether
not a function is a generator. It has been removed from Firefox
with version 58.

`fun.isGenerator()`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/isGenerator`
sourceraw docstring

lengthcljs

(length this)

Property.

The length property indicates the number of parameters expected the function.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length

Property.

The length property indicates the number of parameters expected
the function.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length`
sourceraw docstring

namecljs

(name this)

Property.

[Read Only]

A js.Function object's read-only name property indicates the name as specified when it was created, or "anonymous" for functions anonymously.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name

Property.

[Read Only]

A `js.Function` object's read-only name property indicates the
name as specified when it was created, or \"anonymous\" for functions
anonymously.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name`
sourceraw docstring

prototypecljs

(prototype this)

Property.

The Function.prototype property represents the js.Function object.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype

Property.

The Function.prototype property represents the `js.Function`
object.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype`
sourceraw docstring

set-arguments!cljs

(set-arguments! this val)

Property.

[Deprecated]

The function.arguments property refers to an an array-like object to the arguments passed to a function. Use the simple variable instead. This property is forbidden in strict model.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments

Property.

[Deprecated]

The function.arguments property refers to an an array-like object
to the arguments passed to a function. Use the simple variable
instead. This property is forbidden in strict model.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments`
sourceraw docstring

set-arity!cljs

(set-arity! this val)

Property.

[Obsolute]

The arity property used to return the number of arguments expected the function, however, it no longer exists and has been replaced the Function.prototype.length property.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity

Property.

[Obsolute]

The arity property used to return the number of arguments expected
the function, however, it no longer exists and has been replaced
the `Function.prototype.length` property.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity`
sourceraw docstring

set-caller!cljs

(set-caller! this val)

Property.

[Non Standard]

The function.caller property returns the function that invoked specified function. This property is forbidden in strict mode.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller

Property.

[Non Standard]

The function.caller property returns the function that invoked
specified function. This property is forbidden in strict mode.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller`
sourceraw docstring

set-display-name!cljs

(set-display-name! this val)

Property.

[Non Standard]

The function.displayName property returns the display name of function.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName

Property.

[Non Standard]

The function.displayName property returns the display name of
function.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName`
sourceraw docstring

set-length!cljs

(set-length! this val)

Property.

The length property indicates the number of parameters expected the function.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length

Property.

The length property indicates the number of parameters expected
the function.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length`
sourceraw docstring

set-prototype!cljs

(set-prototype! this val)

Property.

The Function.prototype property represents the js.Function object.

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype

Property.

The Function.prototype property represents the `js.Function`
object.

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype`
sourceraw docstring

to-sourcecljs

(to-source this)

Method.

[Non Standard]

The toSource() method returns a string representing the source of the object.

function.toSource();

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toSource

Method.

[Non Standard]

The toSource() method returns a string representing the source
of the object.

`function.toSource();`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toSource`
sourceraw docstring

to-stringcljs

(to-string this)

Method.

The toString() method returns a string representing the source of the function.

function.toString()

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString

Method.

The toString() method returns a string representing the source
of the function.

`function.toString()`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close