react-native-lunar-calendars
Version:
React Native Calendar Components with Lunar Calendar Support - Fork of react-native-calendars with Vietnamese lunar calendar functionality
12 lines (11 loc) • 315 B
text/typescript
import get from 'lodash.get';
import isEqual from 'lodash.isequal';
export function shouldUpdate(a: any, b: any, paths: string[]): boolean {
for (let i = 0; i < paths.length; i++) {
const equals = isEqual(get(a, paths[i]), get(b, paths[i]));
if (!equals) {
return true;
}
}
return false;
}