clang format 11 documentation code example
Example: how to implement cland format into js file
function Foo() { this.bar = function() {this.doX(); this.doY(); for (var x =0; x < 12; x++) { if (this.z) new Foo(). callWithArgs ( {arg1: 'hello',arg2: 'world'});} }; this.baz = 123; this.bam = {some: 'object literal', including: function() { calls(); }, asdSomeMoreKeysToWrap: 123};}