object.js 395 B

1234567891011121314151617181920
  1. const formatData = pipe(
  2. zip,
  3. map(([ ref, data ]) => ({
  4. nodeId: ref.nodeId.toString(),
  5. ...attributeFromDataValue(ref.attributeId, data)
  6. })),
  7. groupBy(prop('nodeId')),
  8. map(mergeAll),
  9. values
  10. );
  11. export const setProp = y => ({
  12. ...y,
  13. a: 'very, very, very long very, very long text'
  14. });
  15. export const log = y => {
  16. console.log('very, very, very long very, very long text')
  17. };