question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data is not used by "some"

See original GitHub issue

I expected the following to evaluate to true:

Data:

{"input": "x"}

Rule:

{
  "and": [
    {
      "some": [
        [
          "x",
          "y"
        ],
        {
          "===": [
            {
              "var": ""
            },
            {
              "var": "input"
            }
          ]
        }
      ]
    }
  ]
}

If I use a literal value instead of "var": "input", it does evaluate to true:

{
  "and": [
    {
      "some": [
        [
          "x",
          "y"
        ],
        {
          "===": [
            {
              "var": ""
            },
            "x"
          ]
        }
      ]
    }
  ]
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mhelvenscommented, Mar 9, 2018

Seems like you should be able to explicitly name the iterator. That way you could do multiple levels of nesting. Here’s the operation for “non-empty intersection”:

{ some: ['i', [1, 2, 3, 4, 5],
  { some: ['j', [5, 6, 7, 8, 9],
    { '===': [{ var: 'i' }, { var: 'j' }]}
  ]}
]}
0reactions
alxpsrcommented, Jul 29, 2022

@mhelvens does it work for you? Or it’s just a concept for improvements?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reduce & manage mobile data usage - Pixel Phone Help
Data usage is how much data your phone uploads or downloads using mobile data. To make sure that you're not using too much...
Read more >
Americans and Privacy: Concerned, Confused and Feeling ...
Majorities of U.S. adults believe their personal data is less secure ... U.S. adults say it is acceptable for data to be used...
Read more >
Is my mobile data used up when turned on but I'm not ... - Quora
The answer is YES.When mobile data is on and we are not using it even then some apps are active in the background...
Read more >
View or change cellular data settings on iPhone - Apple Support
On iPhone, turn cellular data and roaming on or off, set which apps and services use cellular data, and set other cellular options....
Read more >
What is Data at Rest? - TechTarget
Data at rest is data not in transit or use. ... password protection are commonly used. For some types of data, laws mandate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found