DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
    • can-component
    • can-compute
    • can-connect
    • can-define
    • can-define/list/list
    • can-define/map/map
    • can-route
    • can-route-pushstate
    • can-set
      • types
        • Set
        • Compares
        • Prop
      • properties
        • Algebra
        • Translate
        • props
          • boolean
          • enum
          • id
          • offsetLimit
          • rangeInclusive
          • sort
    • can-stache
    • can-stache/helpers/route
    • can-stache-bindings
  • Ecosystem
  • Infrastructure
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Core
  • /
  • can-set
  • /
  • props
  • /
  • boolean
  • / On this page
    • boolean

      function

      Supports boolean properties.

      • source

      set.props.boolean(property)

      Makes a compare object with a property function that has the following logic:

      A(true) ∪ B(false) = undefined
      
      A(undefined) \ B(true) = false
      A(undefined) \ B(false) = true
      

      It understands that true and false are complementary sets that combined to undefined. Another way to think of this is that if you load {complete: false} and {complete: true} you've loaded {}.

      Parameters

      1. property {String}:

        The name of the boolean property.

      2. A {Compares}:

        Compares object that can be an argument to Algebra

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.