# MercanRey2.js — listSize() (satır 284) [← MercanRey2.js](index.md) · [← Master](../../wiki.md) ```javascript function listSize(list) { if (list == null) return 0; if (typeof list.length === "number") return list.length; try { return list.size(); } catch (e) {} return 0; } ```