Skip to the pagenisc
nisc.dev/elop/prism/reference/lte
DocsGitHub →
Prism0.3.1GuidesReference

Read

README.mdDOCS.mdDESIGN.mdCHANGELOG.md

Core

$ref$const$var$get$with

Arrays

$map$filter$reduce$slice$flatten$unique$sortBy

Math

$add$sub$mul$div$mod$round$toNumber

Strings

$join$toString$interpolate$fill$trim$lower$upper$split$replace

Predicates

$eq$neq$gt$gte$lt$lte$empty$startsWith$endsWith$contains

Logic

$and$or$not

Structure

$merge$coalesce$case$entriesOf$keyBy$groupBy

Objects

$keys$values$fromEntries$pick$omit$type$length

Transform

$has$renameKeys$update$assert$walk

Time

$date$dateAdd$dateDiff

Locale

$localeMoney$localeDate$localeNumber

Sugar

$sum$count$avg$min$max$pluck$take$drop$match$flatMap

Composition

Pick and renameMap to a shapeFilter, then mapCalculated fieldsDenormalize a join

Real world

An API response, for a screenThe top of a listSearch, sort, paginateA summary of orders
Prism · Predicates

$lte

True when the first value is less than the second, or equal to it.

The source
{ score: 100 }
The config
{ $lte: [{ $ref: '$.score' }, { $const: 100 }] }
What comes out
true
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.

Before$ltAfter$empty
nisc.dev/elopnisc.dev/nullmoccadroid.comApache-2.0: fork it, and it is yours.