Skip to content

Replace lodash with native JS code #2593

@KaiVolland

Description

@KaiVolland

With modern EcmaScript lodash is not needed anymore for the most cases: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore

We should replace all occurences of lodash imports with native JS if possible:

  • cloneDeep can be replaced with structuredClone
  • getcan be replaced with typescript optional chaning (.?)
  • set can be replaced with typescript optional chaning (.?) and some checks
  • isEqual can be replaced with native JS
  • isString can be replaced with native JS
  • isBoolean can be replaced with native JS
  • isEmpty can be replaced with native JS
  • isNil can be replaced with native JS
  • uniqueId can be replaced with crypto.randomuuid or similar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions