mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40:08 +00:00
more docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f5d205f273
commit
ba185abada
18
README.md
18
README.md
@ -209,6 +209,24 @@ Constructor(<name>, <class-prototype>, <prototype>)
|
||||
-> <constructor>
|
||||
```
|
||||
|
||||
Shorthand to `Constructor(..)`
|
||||
```
|
||||
C(<name>, ..)
|
||||
-> <constructor>
|
||||
```
|
||||
|
||||
|
||||
## Utilities
|
||||
|
||||
Align text to shortest leading whitespace
|
||||
```
|
||||
normalizeIndent(<text>)
|
||||
normalizeIndent(<text>, <tab-size>)
|
||||
-> <text>
|
||||
```
|
||||
|
||||
This is used to format `.toString(..)` return values for nested functions
|
||||
to make source printing in console more pleasant to read.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user