# potion_rain.js — trim() (satır 150) [← potion_rain.js](index.md) · [← Master](../../wiki.md) ```javascript function trim(s) { return String(s === null || s === undefined ? "" : s).replace(/^\s+|\s+$/g, ""); } ```