UNPKG

react-redux-provide

Version:

Build your UI with React. Manage application state with Redux providers. Persist and share application state with replication. Use pure functions everywhere.

14 lines (11 loc) 240 B
export default function getRelevantKeys(a = {}, b = {}) { const relevantKeys = []; if (typeof b === 'object') { for (let key in b) { if (key in a) { relevantKeys.push(key); } } } return relevantKeys; }