(require("lib/getSnippet"))(source, line, sizeopt) → {string}
Extract the code snippet in the given region
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
source |
string | original source |
||
line |
number | |||
size |
number |
<optional> |
1 |
- Source:
Returns:
- Type
- string