Skip to content

Omit lodash.omit #5644

Open
Open
@apple502j

Description

@apple502j

lodash.omit is usually used for removing certain props. However, this can be re-written as:

const {
    /* eslint-disable no-unused-vars */
    onDrop,
    dragInfo,
    componentRef,
    /* eslint-enable no-unused-vars */
    ...componentProps
} = this.props;

This can reduce amounts of dependencies.

(also lodash.pick and lodash.isequal is not used anywhere?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions