Get position value by shorty..
npm install @jswork/position-value
import positionValue from '@jswork/position-value';
positionValue({ rel: true }) // 'relative'
positionValue({ abs: true }) // 'absolute'
positionValue({ fixed: true }) // 'fixed'
positionValue({ xxx: true }) // null
Code released under the MIT license.