6 lines
139 B
JavaScript
6 lines
139 B
JavaScript
const calcCurrent = (propsCurrent, current) => (typeof current === 'number' ? current : propsCurrent);
|
|
|
|
export default {
|
|
calcCurrent,
|
|
};
|