Home

Awesome

organic-dna-cellmodes

Simple utility function to fold and merge DNA structure based on given value.

usage

install

npm i organic-dna-cellmodes

api

selectedModes(dna, value) : Boolean

example

const dna = {
  myModeX: {
    property: "value42"
  },
  property: "value"
}

var selectModes = require("organic-dna-cellmodes")
selectModes(dna, 'myModeX')

expect(dna).toBeDeepEqual({
  myModeX: {
    property: "value42"
  },
  property: "value42"
})