Questions tagged [crocks]
3 questions
                    
                    3
                    
            votes
                
                1 answer
            
        How to extract the value out of Monads in the Crocks javascript library
I understand that monads typically don't want to unwrap the underlying value because it may or may not exist. In my use case I would like to use functional programming techniques, using ramda for a functional library and Crocks for an algebraic data…
        
        Justin Hoyt
        
- 148
 - 1
 - 9
 
                    0
                    
            votes
                
                1 answer
            
        Correct Date format in formatWithOptions results in Range Error: Invalid time value
I want to display the date for each entry (date, text, question, answer) in a json database within a lit element in a js module. The date format for (date) inside the json db is valid (see this post). Example: "2021-12-24T21:06:06.773Z"
Relevant…
        
        WhooNo
        
- 911
 - 2
 - 12
 - 28
 
                    0
                    
            votes
                
                0 answers
            
        calling new Date variable in formatWithOptions results in RangeError: Invalid time value
I want to display the date for each entry (date, text, question, answer) in a json database within a lit element in a js module.
Relevant code:
import { formatWithOptions } from "date-fns/fp";
import compose from…
        
        WhooNo
        
- 911
 - 2
 - 12
 - 28