refactor(utils): rename function
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
export const isFunction = obj => !!(obj && obj.constructor && obj.call && obj.apply);
|
||||
|
||||
export const isInputNode = e => e && e.target && ['INPUT', 'SELECT', 'TEXTAREA'].includes(e.target.nodeName);
|
||||
export const inInputDOMNode = e => e && e.target && ['INPUT', 'SELECT', 'TEXTAREA'].includes(e.target.nodeName);
|
||||
|
||||
export const getDimensions = (node = {}) => ({
|
||||
width: node.offsetWidth,
|
||||
|
||||
Reference in New Issue
Block a user