Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Not Work With Arrow Functions #86

Open
dave-ops opened this issue Oct 15, 2021 · 0 comments
Open

Does Not Work With Arrow Functions #86

dave-ops opened this issue Oct 15, 2021 · 0 comments

Comments

@dave-ops
Copy link

dave-ops commented Oct 15, 2021

Our standards are to use arrow functions, so unfortunately this is not helpful for us

/**
 *
 */
export const isSomeNumberGreaterThen5 = (someNumber) => (someNumber > 5);


/**
 * 
 */ 
export const isSomethingComplicated = (something) => {
    if (!something) {
        return false;
    }

    if (Object.prototype.hasOwnProperty.call(something, 'isComplicated')) {
        return somthing.isComplicated;
    }

    return false;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant