pretty print enhancements + comparison of generic functions
This commit is contained in:
parent
bbac7858ae
commit
9e1f679dba
15 changed files with 93 additions and 45 deletions
|
|
@ -18,3 +18,7 @@ export const memoize = callback => {
|
|||
return result;
|
||||
};
|
||||
};
|
||||
|
||||
export const indent = (multiline, n) => {
|
||||
return multiline.split('\n').map(line => ' '.repeat(n)+line).join('\n');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue