Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rakannimer/996d1e8078157b7762b6f9a6eb8076d7 to your computer and use it in GitHub Desktop.
Save rakannimer/996d1e8078157b7762b6f9a6eb8076d7 to your computer and use it in GitHub Desktop.
const log = (...args) => {
console.log(" ".repeat(new Error().stack.match(/\n/g).length - 2), ...args);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment