ramda#is JavaScript Examples
The following examples show how to use
ramda#is.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StartupSagas.js From gDoctor with MIT License | 6 votes |
// process STARTUP actions
export function * startup (action) {
if (__DEV__ && console.tron) {
// straight-up string logging
console.tron.log('Hello, I\'m an example of how to log via Reactotron.')
// logging an object for better clarity
console.tron.log({
message: 'pass objects for better logging',
someGeneratorFunction: selectAvatar
})
// fully customized!
const subObject = { a: 1, b: [1, 2, 3], c: true }
subObject.circularDependency = subObject // osnap!
console.tron.display({
name: '? IGNITE ?',
preview: 'You should totally expand this',
value: {
'?': 'Welcome to the future!',
subObject,
someInlineFunction: () => true,
someGeneratorFunction: startup,
someNormalFunction: selectAvatar
}
})
}
const avatar = yield select(selectAvatar)
// only get if we don't have it yet
if (!is(String, avatar)) {
yield put(GithubActions.userRequest('GantMan'))
}
}