some libraries also offer documentation, a quick look at their GitHub or repository would highlight this
for example
AccelStepper ➜ AccelStepper: AccelStepper library for Arduino
Arduino JSON ➜ https://arduinojson.org
FastLed ➜ http://fastled.io
...
so don't feel shy and explore around either source code or whatever is published. Examples sometimes also go a long way