Skip to content

Commit

Permalink
Add documentation for getPhoneCodesForWilaya to README
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylnguyen committed Oct 5, 2020
1 parent 835978e commit 04a9a3c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -144,6 +144,22 @@ const { getWilayaByPhoneCode } = require('@dzcode-io/leblad');
console.log(getWilayaByPhoneCode(34)); //will the wilaya object ({name: "Béjaïa"...})
```

#### getPhoneCodesForWilaya(wilayaCode?: number)

Takes a wilaya code (matricule) and returns a list of phone codes for given wilaya

**Arguments**

- `wilayaCode: number` (**required**) the Wilaya's "matricule"

**Examples**

```javascript
const { getPhoneCodesForWilaya } = require('@dzcode-io/leblad');

console.log(getPhoneCodesForWilaya(31)); //returns list of phone codes for wilaya 31
```

## Helper methods

#### wilayaProjection(wilaya: (object|array), projection?: string[])
Expand Down

0 comments on commit 04a9a3c

Please sign in to comment.