UNPKG

vue2-filters

Version:
13 lines (10 loc) 269 B
/** * If the value is missing outputs the placeholder text * * '' => {placeholder} * 'foo' => 'foo' */ function placeholder (input, property) { return ( input === undefined || input === '' || input === null ) ? property : input; } export default placeholder