Platform
Resources
Pricing
Sign in
Get started
timelyportfolio
open source with R and JavaScript
Workspace
Fork
Public
By
timelyportfolio
Edited
Sep 14, 2018
2 stars
Insert cell
Insert cell
Insert cell
SEARCHJS
.
matchArray
(
cars_nums
,
{
cyl
:
6
}
)
Insert cell
SEARCHJS
.
matchArray
(
cars_nums
,
{
hp
:
{
gte
:
200
}
}
)
Insert cell
SEARCHJS
.
matchArray
(
cars_nums
,
{
hp
:
{
gte
:
200
}
,
cyl
:
6
,
_join
:
"OR"
}
)
Insert cell
SEARCHJS
.
matchArray
(
cars_nums
,
{
name
:
"Merc"
,
_text
:
true
}
)
Insert cell
SEARCHJS
.
matchArray
(
cars_nums
,
{
name
:
"Merc"
,
_text
:
true
,
_not
:
true
}
)
Insert cell
// returns one; see below to get all
SEARCHJS
.
matchArray
(
d3_data
.
children
,
{
name
:
"tree"
,
_text
:
true
,
_propertySearch
:
true
}
)
Insert cell
d3_data
.
children
.
map
(
d
=>
{
let
results
=
SEARCHJS
.
matchArray
(
d
.
children
,
{
name
:
"tree"
,
_text
:
true
,
_propertySearch
:
true
}
)
if
(
results
.
length
)
{
return
{
name
:
d
.
name
,
results
:
results
}
}
}
)
.
concat
(
)
.
filter
(
d
=>
typeof
(
d
)
!==
"undefined"
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cars
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cars_nums
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3_data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
SEARCHJS
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML