Files
ncd-fe/app/soapbox/utils/normalizers.js
2022-02-27 20:25:15 -06:00

3 lines
136 B
JavaScript

// Use new value only if old value is undefined
export const mergeDefined = (oldVal, newVal) => oldVal === undefined ? newVal : oldVal;