UNPKG

251 BPlain TextView Raw
1import swap$ from './swap$';
2
3/**
4 * Exchanges two values.
5 * @param x an object
6 * @param k a key
7 * @param l another key
8 */
9function swap(x: object, k: string, l: string): object {
10 return swap$(Object.assign({}, x), k, l);
11}
12export default swap;