justmoon / node-extend

Simple function to extend objects
MIT License
341 stars 68 forks source link

A small optimization for isArray #30

Closed duzun closed 9 years ago

duzun commented 9 years ago

When Array.isArray is available, use it directly, to avoid an extra function call.

ljharb commented 9 years ago

This is as-is intentionally, for code coverage tests.