From Shadows
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to JavaScript@programming.devEnglish · 5 months ago

Stop using .reverse().find(): meet findLast()

allthingssmitty.com

external-link
message-square
0
link
fedilink
7
external-link

Stop using .reverse().find(): meet findLast()

allthingssmitty.com

codeinabox@programming.dev to JavaScript@programming.devEnglish · 5 months ago
message-square
0
link
fedilink
Stop using .reverse().find(): meet findLast() - Matt Smith
allthingssmitty.com
external-link
Learn how Array.prototype.findLast() and findLastIndex() let you search JavaScript arrays from the end—no .reverse() required. Cleaner, safer, and perfect for UI logic.
alert-triangle
You must log in or # to comment.

JavaScript@programming.dev

javascript@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !javascript@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 5 users / week
  • 263 users / month
  • 508 users / 6 months
  • 1 local subscriber
  • 2.68K subscribers
  • 258 Posts
  • 362 Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • Ategon@programming.dev
  • nick@programming.dev
  • BE: 0.19.16
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org