Skip to content

Suggestion replacing array-last with native utility #71

Description

@joaopedrodcf

Hello,

I noticed this project depends on https://npmx.dev/package/array-last but array-last can be simply replaced by a micro-utility if this project used node 16.6.0 later we could use arr.at(-1) but as it uses node 4 equal or later we could use arr[arr.length - 1]

If you guys think it makes sense I'm available to create a PR for this as far as I could see most of the uses cases are for the const xp= last(state.expensaion) that we can for example do it like const xp = state.expansion[state.expansion.length - 1];

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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