bokuweb/re-bulma

View on GitHub
lib-es/helper/helper.js

Summary

Maintainability
A
2 hrs
Test Coverage
export const getCallbacks = props => {
  const callbacks = {};
  Object.keys(props).forEach(prop => {
    if (typeof props[prop] === 'function') {
      callbacks[prop] = props[prop];
    }
  });
  return callbacks;
};