# Useful Array Tricks

**URL:** <https://forum.kirupa.com/t/useful-array-tricks/637067>\
**Category:** programming\
**Created:** [August 20, 2017, 2:19am UTC](https://forum.kirupa.com/t/useful-array-tricks/637067 "2017-08-20T02:19:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [August 20, 2017, 4:02am UTC](https://forum.kirupa.com/t/useful-array-tricks/637067/2 "2017-08-20T04:02:48Z")

</div>

You’re better off using [isArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray) to check for arrays rather than going the notoriously unreliable constructor property. 😉

---

_[View the full topic](https://forum.kirupa.com/t/useful-array-tricks/637067)._
