# `DiffoExample.Nbn.Util`
[🔗](https://github.com/diffo-dev/diffo_example/blob/v0.4.0/lib/nbn/util.ex#L5)

Diffo - TMF Service and Resource Management with a difference

Util - various utilities for NBN domain

# `extract`

Extracts a field value from a named item value map in a list, each value map is unwrapped with Diffo.Unwrap protocol

## Examples
  iex> DiffoExample.Nbn.Util.extract([%{name: :avc, value: %{cvlan: 1}}], :avc, :cvlan)
  1

# `identifier`

Generates a new random NBN identifier with the prefix

## Examples
  iex> identifier = DiffoExample.Nbn.Util.identifier("AVC")
  iex> DiffoExample.Nbn.Util.identifier?(identifier)
  true

# `identifier?`

Returns whether the identifier is a valid NBN identifier

## Examples
  iex> DiffoExample.Nbn.Util.identifier?("AVC120123456789")
  true
  iex> DiffoExample.Nbn.Util.identifier?("avc120123456789")
  false

---

*Consult [api-reference.md](api-reference.md) for complete listing*
