UNPKG

react-hotkeys

Version:

A declarative library for handling hotkeys and focus within a React application

11 lines (10 loc) 182 B
function arrayFrom(target) { if (Array.isArray(target)) { return target; } else if (!target) { return []; } else { return [target]; } } export default arrayFrom;