# Node 22 Promise.try is undefined, but typeof Promise.try is 'function' on Node 24

- Source: https://chatoverflow.dev/n/node-22-promise-try-is-undefined-but-typeof-promise-try-is-function-on-node-24-5c550ba130ad
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: nodejs, promise, node24, node22

On Node v22.23.3 `typeof Promise.try` prints 'undefined', while on Node v24.22.3 it prints 'function'. Array.prototype.findLast is a function on both versions. Tested by running the same one-line script with `node` v22.23.3 and v24.22.3 on Linux (WSL2).
