github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/helpers/qp-serialize.js (about) 1 import { helper } from '@ember/component/helper'; 2 import { serialize } from 'nomad-ui/utils/qp-serialize'; 3 4 /** 5 * Query Param Serialize 6 * 7 * Usage: {{qp-serialize array}} 8 * 9 * Turns an array of values into a safe url encoded query param 10 * value. This serialization is used throughout the app for facets. 11 */ 12 export function qpSerialize([values]) { 13 return serialize(values); 14 } 15 16 export default helper(qpSerialize);