
{{alias}}( fcn[, thisArg] )
    Wraps a function in a try/catch block.

    Parameters
    ----------
    fcn: Function
        Function to wrap.

    thisArg: any (optional)
        Function context.

    Returns
    -------
    wrapped: Function
        Wrapped function.

    Examples
    --------
    > function fcn() {
    >     throw new Error( 'beep boop' );
    > }
    > var f = wrap( fcn );
    > var out = f();
    > out.message
    'beep boop'

    See Also
    --------



{{alias}}( fcn[, thisArg] )
    Wraps a function in a try/catch block.

    If provided an asynchronous function, the returned function only traps
    errors which occur during the current event loop tick.

    Parameters
    ----------
    fcn: Function
        Function to wrap.

    thisArg: any (optional)
        Function context.

    Returns
    -------
    out: Function
        Wrapped function.

    Examples
    --------
    > function fcn() {
    >     throw new Error( 'beep boop' );
    > };
    > var f = wrap( fcn );
    > var out = f();
    > out.message
    'beep boop'

    See Also
    --------


Add semicolon and add note
Add semicolon and add note
