Useful utility functions for the Unity team.
npm i --save unity-utilsURI utilities.
Deafult: '/'
Returns: {String}
Joins path parts, dropping all falsy parts, except for 0.
Accepts any amount of arguments of any type.
Example:
import { join } from 'unity-utils/uri';
console.log(join('path', 'with', null)); // outputs: "path/with"Returns: {Object}
Filters query object, dropping undefined, null and '' values.
Any query-like object.
Example:
import { query } from 'unity-utils/uri';
console.log(query({ param: 'val', 'null': null })); // outputs: "{"param": "val"}"- Provide conventional commit messages by using
npm run commitinstead ofgit commit. - Core contributors: use GitHub's Rebase and merge as a default way of merging PRs.
MIT © AuRu
