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