ryardley / pdsl

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript
https://pdsl.site
MIT License
69 stars 2 forks source link

Add Truthy and Falsy operators #76

Closed ryardley closed 5 years ago

ryardley commented 5 years ago

This adds truthy and falsy predicates:

! - Falsey !! - Truthy

codecov-io commented 5 years ago

Codecov Report

Merging #76 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #76   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           8      8           
  Lines         303    317   +14     
  Branches       40     42    +2     
=====================================
+ Hits          303    317   +14
Impacted Files Coverage Δ
packages/pdsl/helpers.js 100% <100%> (ø) :arrow_up:
packages/pdsl/lexer.js 100% <100%> (ø) :arrow_up:
packages/pdsl/grammar.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a87ece5...268dddf. Read the comment docs.