stacktracey
Advanced tools
Comparing version 1.0.24 to 1.0.25
{ | ||
"name": "stacktracey", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "Parses call stacks, reads sources and meta-information.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
@@ -116,9 +116,18 @@ # StackTracey | ||
All StackTracey instances expose `map`, `filter`, `concat` and `slice` methods. These methods will return mapped, filtered and sliced stacks, respectively. Any other method of the `Array` is supported too, it return `Array` instances, not StackTracey instances. You can convert from array via this: | ||
All StackTracey instances expose `map`, `filter`, `concat` and `slice` methods. These methods will return mapped, filtered, joined and sliced stacks, respectively. | ||
```javascript | ||
s = new StackTracey ().slice (1).filter (x => !x.isThirdParty) // current stack shifted by 1 and cleaned from library class | ||
s instanceof StackTracey // true | ||
s instanceof Array // true | ||
``` | ||
Any other method of the `Array` is supported too, but they will return `Array` instances, not StackTracey instances. You can convert from array via this: | ||
```javascript | ||
stack = new StackTracey (array) | ||
``` | ||
And to array via this (but generally this is not needed, you can pass around StackTracey instances as if they were real Arrays): | ||
..and to array via this (but generally this is not needed — you can pass around StackTracey instances as if they were real Arrays): | ||
@@ -125,0 +134,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17657
144