# getLinks

### Description

@short: Returns all links presented in the Gantt chart

@signature: getLinks: () =\> Array\<Link\>

### Returns
- `links` - (Array &lt;Link&gt;) - an array of links' objects

### Example

~~~jsx
const links = gantt.getLinks();
~~~

### Details

For information about how to get all links connected to a specific task, see the [Getting the Link Object/Id](guides/link-object-operations.md#getting-the-links-related-to-a-certain-task) and [getLink](api/method/getlink.md) articles.

