UNPKG

rsuite

Version:

A suite of react components

21 lines (16 loc) 333 B
import shallowEqual from './shallowEqual'; function shallowEqualArray(a, b) { if (a === b) { return true; } if (a.length !== b.length) { return false; } for (var i = 0; i < a.length; i += 1) { if (!shallowEqual(a[i], b[i])) { return false; } } return true; } export default shallowEqualArray;