billymoon / fiona

Home Page:https://fiona.itaccess.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use store to capture and retrieve parts of data instead of accessing seeded.data

billymoon opened this issue · comments

const [capture, retrieve] = Store();

console.log(Fiona(1).object({
  user: capture("myUser", {
    first: Fiona.Firstname,
    last: Fiona.Surname
  }, undefined),
  firsty: () => retrieve("myUser").first,
  lasty: () => retrieve("myUser").last
}))