# MercanRey6.js — listSize() (satır 61) [← MercanRey6.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; } ```