tgandrews / atom-easy-jsdoc

JSDoc hot key for atom editor.
Other
41 stars 11 forks source link

Does Not Work With Arrow Functions #86

Open dave-ops opened 3 years ago

dave-ops commented 3 years ago

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;
};